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

[QUERY] PrivateDnsZonePropertiesFormat recordSets setter or readonly? #44452

Open
Chen-hao-Huang opened this issue Feb 28, 2025 · 1 comment
Open
Assignees
Labels
ARM customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. 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

@Chen-hao-Huang
Copy link

Chen-hao-Huang commented Feb 28, 2025

Query/Question
I'm not able to set the recordsets in PrivateDnsZoneGroup when I call create with
networkManager.serviceClient().getPrivateDnsZoneGroups().createOrUpdate()

the struct only has withPrivateDnsZoneId and no withRecordsets()
when i use config.recordSets().addAll(recordSets) i get the error:
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.List.addAll(java.util.Collection)" because the return value of "com.azure.resourcemanager.network.models.PrivateDnsZoneConfig.recordSets()" is null
it seems like it's only a getter and not a setting in the description and its not initialized when i create with new com.azure.resourcemanager.network.models.PrivateDnsZoneConfig()

they're read-only for the zone group API?

Why is this not a Bug or a feature Request?
not sure if im missing the setter or its intended to be read only

@Chen-hao-Huang Chen-hao-Huang changed the title [QUERY] PrivateDnsZonePropertiesFormat missing recordSets setter? [QUERY] PrivateDnsZonePropertiesFormat recordSets setter or readonly? Feb 28, 2025
@github-actions github-actions bot added ARM customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team labels Feb 28, 2025
Copy link
Contributor

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@github-actions github-actions bot added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. 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