[QUERY] PrivateDnsZonePropertiesFormat recordSets setter or readonly? #44452
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
Query/Question
I'm not able to set the recordsets in PrivateDnsZoneGroup when I call create with
networkManager.serviceClient().getPrivateDnsZoneGroups().createOrUpdate()
azure-sdk-for-java/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateDnsZonePropertiesFormat.java
Line 63 in 8ae755a
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
The text was updated successfully, but these errors were encountered: