Skip to content
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

func (client *ProactiveDetectionConfigurationsClient) List return an array with each item properties are nil #23464

Open
AmitOttenheimer opened this issue Sep 19, 2024 · 2 comments
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. Monitor - ApplicationInsights needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@AmitOttenheimer
Copy link

Hey,
I am using the function: func (client *ProactiveDetectionConfigurationsClient) List(ctx context.Context, resourceGroupName string, resourceName string, ...) (ProactiveDetectionConfigurationsClientListResponse, error)
and I am receiving the array with the proper item number but each item has every property set to the default value,
I saw that the problem was inside the function: func (client *ProactiveDetectionConfigurationsClient) listHandleResponse(resp *http.Response) (ProactiveDetectionConfigurationsClientListResponse, error)

with in the UnmarshalAsJSON

I am using this version: v1.2.0

thank you very much!

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Sep 19, 2024
@jhendrixMSFT jhendrixMSFT added Mgmt This issue is related to a management-plane library. Monitor - ApplicationInsights and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Sep 19, 2024
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Sep 19, 2024
@jhendrixMSFT
Copy link
Member

Can you please elaborate on the problem with the call to UnmarshalAsJSON?

@AmitOttenheimer
Copy link
Author

yes. i saw that the body is being returned as expected, the configuration is accurate and the there is a call to the UnmarshalAsJSON function to return the json data as an object but the UnmarshalAsJSON function return the array with each item properties set to be nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. Monitor - ApplicationInsights needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

2 participants