From 72fda8c01870152fd5ec9f09c9b05c433f026685 Mon Sep 17 00:00:00 2001 From: Tatsuro Shibamura Date: Tue, 6 Sep 2022 17:38:58 +0900 Subject: [PATCH] Update NuGet packages (#522) --- KeyVault.Acmebot/KeyVault.Acmebot.csproj | 6 +++--- KeyVault.Acmebot/Providers/AzureDnsProvider.cs | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/KeyVault.Acmebot/KeyVault.Acmebot.csproj b/KeyVault.Acmebot/KeyVault.Acmebot.csproj index 73687229..b0d3d6fc 100644 --- a/KeyVault.Acmebot/KeyVault.Acmebot.csproj +++ b/KeyVault.Acmebot/KeyVault.Acmebot.csproj @@ -4,9 +4,9 @@ v4 - + - + @@ -15,7 +15,7 @@ - + diff --git a/KeyVault.Acmebot/Providers/AzureDnsProvider.cs b/KeyVault.Acmebot/Providers/AzureDnsProvider.cs index 8ee0b590..08761465 100644 --- a/KeyVault.Acmebot/Providers/AzureDnsProvider.cs +++ b/KeyVault.Acmebot/Providers/AzureDnsProvider.cs @@ -49,19 +49,19 @@ public async Task> ListZonesAsync() public Task CreateTxtRecordAsync(DnsZone zone, string relativeRecordName, IEnumerable values) { // TXT レコードに TTL と値をセットする - var recordSet = new TxtRecordSetData + var recordSet = new TxtRecordData { - TTL = 60 + TtlInSeconds = 60 }; foreach (var value in values) { - recordSet.TxtRecords.Add(new TxtRecord { Value = { value } }); + recordSet.TxtRecords.Add(new TxtRecordInfo { Values = { value } }); } var dnsZoneResource = _armClient.GetDnsZoneResource(new ResourceIdentifier(zone.Id)); - var recordSets = dnsZoneResource.GetRecordSetTxts(); + var recordSets = dnsZoneResource.GetTxtRecords(); return recordSets.CreateOrUpdateAsync(WaitUntil.Completed, relativeRecordName, recordSet); } @@ -72,7 +72,7 @@ public async Task DeleteTxtRecordAsync(DnsZone zone, string relativeRecordName) try { - var recordSets = await dnsZoneResource.GetRecordSetTxtAsync(relativeRecordName); + var recordSets = await dnsZoneResource.GetTxtRecordAsync(relativeRecordName); await recordSets.Value.DeleteAsync(WaitUntil.Completed); }