-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
azcore fix: POST responses can be any type (#3721)
Fixes #3716. In the autorest client, POST responses were unmarshaled into `any`, which allows for primitive types as well as objects. In the new azcore client, they were unmarshaled into `map[string]any`, requiring the response to be an object.
- Loading branch information
Showing
6 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
using Pulumi.AzureNative.App; | ||
|
||
return await Pulumi.Deployment.RunAsync(() => | ||
{ | ||
var azureDomainVerificationId = GetCustomDomainVerificationId.Invoke().Apply(x => x.Value); | ||
|
||
return new Dictionary<string, object?> | ||
{ | ||
["domainVerificationId"] = azureDomainVerificationId | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: cs-getcustomdomainverificationid | ||
description: An Azure Native C# Pulumi program calling the App.GetCustomDomainVerificationId invoke | ||
runtime: dotnet | ||
config: | ||
pulumi:tags: | ||
value: | ||
pulumi:template: azure-csharp |
14 changes: 14 additions & 0 deletions
14
examples/cs-getcustomdomainverificationid/azn-3716-azcore.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Pulumi" Version="3.*" /> | ||
<PackageReference Include="Pulumi.AzureNative" Version="2.*" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters