diff --git a/sdk/provisioning/Azure.Provisioning.Dns/README.md b/sdk/provisioning/Azure.Provisioning.Dns/README.md index 262bf754d2ce..d3f6a4067a64 100644 --- a/sdk/provisioning/Azure.Provisioning.Dns/README.md +++ b/sdk/provisioning/Azure.Provisioning.Dns/README.md @@ -59,8 +59,8 @@ DnsARecord aRecord = new(nameof(aRecord), DnsARecord.ResourceVersions.V2018_05_0 TtlInSeconds = 3600, ARecords = { - new DnsARecordInfo() { Ipv4Addresses = IPAddress.Parse("203.0.113.1") }, - new DnsARecordInfo() { Ipv4Addresses = IPAddress.Parse("203.0.113.2") } + new DnsARecordInfo() { Ipv4Address = IPAddress.Parse("203.0.113.1") }, + new DnsARecordInfo() { Ipv4Address = IPAddress.Parse("203.0.113.2") } } }; infra.Add(aRecord); diff --git a/sdk/provisioning/Azure.Provisioning.Dns/src/DnsARecord.cs b/sdk/provisioning/Azure.Provisioning.Dns/src/DnsARecord.cs index c1e6c24b66c6..1ca57a73cd7d 100644 --- a/sdk/provisioning/Azure.Provisioning.Dns/src/DnsARecord.cs +++ b/sdk/provisioning/Azure.Provisioning.Dns/src/DnsARecord.cs @@ -93,11 +93,11 @@ public DnsARecord(string bicepIdentifier, string? resourceVersion = default) protected override void DefineProvisionableProperties() { base.DefineProvisionableProperties(); - _name = DefineProperty("Name", ["name"], isRequired: true); - _id = DefineProperty("Id", ["id"], isOutput: true); - _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); - _parent = DefineResource("Parent", ["parent"], isRequired: true); - _aRecords = DefineListProperty("ARecords", ["properties", "ARecords"]); + _name = DefineProperty(nameof(Name), ["name"], isRequired: true); + _id = DefineProperty(nameof(Id), ["id"], isOutput: true); + _systemData = DefineModelProperty(nameof(SystemData), ["systemData"], isOutput: true); + _parent = DefineResource(nameof(Parent), ["parent"], isRequired: true); + _aRecords = DefineListProperty(nameof(ARecords), ["properties", "ARecords"]); _ttlInSeconds = DefineProperty(nameof(TtlInSeconds), ["properties", "TTL"]); } diff --git a/sdk/provisioning/Azure.Provisioning.Dns/src/DnsCnameRecord.cs b/sdk/provisioning/Azure.Provisioning.Dns/src/DnsCnameRecord.cs index f260e03ede34..a368f5302f27 100644 --- a/sdk/provisioning/Azure.Provisioning.Dns/src/DnsCnameRecord.cs +++ b/sdk/provisioning/Azure.Provisioning.Dns/src/DnsCnameRecord.cs @@ -95,11 +95,11 @@ public DnsCnameRecord(string bicepIdentifier, string? resourceVersion = default) protected override void DefineProvisionableProperties() { base.DefineProvisionableProperties(); - _name = DefineProperty("Name", ["name"], isRequired: true); - _id = DefineProperty("Id", ["id"], isOutput: true); - _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); - _parent = DefineResource("Parent", ["parent"], isRequired: true); - _cname = DefineProperty("Cname", ["CNAMERecord", "cname"]); + _name = DefineProperty(nameof(Name), ["name"], isRequired: true); + _id = DefineProperty(nameof(Id), ["id"], isOutput: true); + _systemData = DefineModelProperty(nameof(SystemData), ["systemData"], isOutput: true); + _parent = DefineResource(nameof(Parent), ["parent"], isRequired: true); + _cname = DefineProperty(nameof(Cname), ["properties", "cname"]); _ttlInSeconds = DefineProperty(nameof(TtlInSeconds), ["properties", "TTL"]); } diff --git a/sdk/provisioning/Azure.Provisioning.Dns/src/DnsTxtRecord.cs b/sdk/provisioning/Azure.Provisioning.Dns/src/DnsTxtRecord.cs index 6aa513c3530a..dbadbc478a9e 100644 --- a/sdk/provisioning/Azure.Provisioning.Dns/src/DnsTxtRecord.cs +++ b/sdk/provisioning/Azure.Provisioning.Dns/src/DnsTxtRecord.cs @@ -91,11 +91,11 @@ public DnsTxtRecord(string bicepIdentifier, string? resourceVersion = default) protected override void DefineProvisionableProperties() { base.DefineProvisionableProperties(); - _name = DefineProperty("Name", ["name"], isRequired: true); - _id = DefineProperty("Id", ["id"], isOutput: true); - _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); - _txtRecords = DefineListProperty("TxtRecords", ["properties", "TXTRecords"]); - _parent = DefineResource("Parent", ["parent"], isRequired: true); + _name = DefineProperty(nameof(Name), ["name"], isRequired: true); + _id = DefineProperty(nameof(Id), ["id"], isOutput: true); + _systemData = DefineModelProperty(nameof(SystemData), ["systemData"], isOutput: true); + _txtRecords = DefineListProperty(nameof(TxtRecords), ["properties", "TXTRecords"]); + _parent = DefineResource(nameof(Parent), ["parent"], isRequired: true); _ttlInSeconds = DefineProperty(nameof(TtlInSeconds), ["properties", "TTL"]); } diff --git a/sdk/provisioning/Azure.Provisioning.Dns/src/Models/DnsARecordInfo.cs b/sdk/provisioning/Azure.Provisioning.Dns/src/Models/DnsARecordInfo.cs index 6d0f8c4ab00b..86c2f8bf48bd 100644 --- a/sdk/provisioning/Azure.Provisioning.Dns/src/Models/DnsARecordInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.Dns/src/Models/DnsARecordInfo.cs @@ -13,12 +13,12 @@ namespace Azure.Provisioning.Dns; /// public partial class DnsARecordInfo : ProvisionableConstruct { - public BicepValue Ipv4Addresses + public BicepValue Ipv4Address { - get { Initialize(); return _ipv4Addresses!; } - set { Initialize(); _ipv4Addresses!.Assign(value); } + get { Initialize(); return _ipv4Address!; } + set { Initialize(); _ipv4Address!.Assign(value); } } - private BicepValue? _ipv4Addresses; + private BicepValue? _ipv4Address; /// /// Creates a new DnsARecordInfo. @@ -33,6 +33,6 @@ public DnsARecordInfo() protected override void DefineProvisionableProperties() { base.DefineProvisionableProperties(); - _ipv4Addresses = DefineProperty("IPv4Addresses", ["ipv4Addresses"], isRequired: true); + _ipv4Address = DefineProperty(nameof(Ipv4Address), ["ipv4Address"], isRequired: true); } } diff --git a/sdk/provisioning/Azure.Provisioning.Dns/src/Models/DnsAaaaRecordInfo.cs b/sdk/provisioning/Azure.Provisioning.Dns/src/Models/DnsAaaaRecordInfo.cs index f73c30a6c382..8c64796a3e03 100644 --- a/sdk/provisioning/Azure.Provisioning.Dns/src/Models/DnsAaaaRecordInfo.cs +++ b/sdk/provisioning/Azure.Provisioning.Dns/src/Models/DnsAaaaRecordInfo.cs @@ -13,12 +13,12 @@ namespace Azure.Provisioning.Dns; /// public partial class DnsAaaaRecordInfo : ProvisionableConstruct { - public BicepValue Ipv6Addresses + public BicepValue Ipv6Address { - get { Initialize(); return _ipv6Addresses!; } - set { Initialize(); _ipv6Addresses!.Assign(value); } + get { Initialize(); return _ipv6Address!; } + set { Initialize(); _ipv6Address!.Assign(value); } } - private BicepValue? _ipv6Addresses; + private BicepValue? _ipv6Address; /// /// Creates a new DnsAaaaRecordInfo. @@ -33,6 +33,6 @@ public DnsAaaaRecordInfo() protected override void DefineProvisionableProperties() { base.DefineProvisionableProperties(); - _ipv6Addresses = DefineProperty("IPv6Addresses", ["ipv6Addresses"]); + _ipv6Address = DefineProperty("IPv6Address", ["ipv6Address"]); } }