Skip to content

Commit

Permalink
Update NuGet packages (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibayan authored Sep 6, 2022
1 parent 73db3bf commit 72fda8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions KeyVault.Acmebot/KeyVault.Acmebot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AWSSDK.Route53" Version="3.7.3.29" />
<PackageReference Include="AWSSDK.Route53" Version="3.7.3.33" />
<PackageReference Include="Azure.Identity" Version="1.6.1" />
<PackageReference Include="Azure.ResourceManager.Dns" Version="1.0.0-beta.1" />
<PackageReference Include="Azure.ResourceManager.Dns" Version="1.0.0-beta.2" />
<PackageReference Include="Azure.Security.KeyVault.Certificates" Version="4.3.0" />
<PackageReference Include="Azure.Security.KeyVault.Keys" Version="4.3.0" />
<PackageReference Include="DnsClient" Version="1.6.1" />
Expand All @@ -15,7 +15,7 @@
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.8.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.1.1" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.1.3" />
<PackageReference Include="WebJobs.Extensions.HttpApi" Version="2.0.3" />
</ItemGroup>
<ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions KeyVault.Acmebot/Providers/AzureDnsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ public async Task<IReadOnlyList<DnsZone>> ListZonesAsync()
public Task CreateTxtRecordAsync(DnsZone zone, string relativeRecordName, IEnumerable<string> 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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 72fda8c

Please sign in to comment.