Skip to content

[QUERY] PrivateDnsZonePropertiesFormat recordSets setter or readonly? #44452

Open
@Chen-hao-Huang

Description

@Chen-hao-Huang

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

Metadata

Metadata

Labels

ARMMgmtThis issue is related to a management-plane library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions