-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security Center Automations - fields required by the API are omitted #12634
Comments
Hi @benc-uk thanks for this issue and sorry for the inconvenience. I have identified the root cause of this issue, and this will be resolved in the next major version |
Thanks @ArcturusZhang this is great news. I spotted v47 in the PR section, will this fix make that release or the one after? |
Should be included in this release, I am working on it |
@ArcturusZhang I just checked my code, and v47 fixes this |
Bug Report
services/preview/security/mgmt/v1.0/security
v46.4.0
go1.15.1 linux/amd64
What happened?
When trying to create or update an automation using the SDK and the
CreateOrUpdate
function, the following error is returnedI expect this package within the SDK has never worked due to this error
What did you expect or want to happen?
The CreateOrUpdate operation to succeed and the resource is created in Azure
Why this happened
The Automation struct has the READ-ONLY comment above the
Location
fieldLink to code in the SDK
The
MarshallJSON()
function does not include theLocation
fieldLink to code in the SDK
I suspect this is due to an error in the upstream API spec where that field has been marked read-only
How can we reproduce it?
Sample code to easily reproduce the bug is here https://gist.github.com/benc-uk/c6114689e978c834b92b6fcd9656c020
Anything we should know about your environment.
Nothing of note
The text was updated successfully, but these errors were encountered: