github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/discriminated-union-pp/dotnet/discriminated-union.cs (about)

     1  using System.Collections.Generic;
     2  using Pulumi;
     3  using AzureNative = Pulumi.AzureNative;
     4  
     5  return await Deployment.RunAsync(() => 
     6  {
     7      var server = new AzureNative.DBforPostgreSQL.Server("server", new()
     8      {
     9          Location = "brazilsouth",
    10          Properties = new AzureNative.DBforPostgreSQL.Inputs.ServerPropertiesForRestoreArgs
    11          {
    12              CreateMode = "PointInTimeRestore",
    13              RestorePointInTime = "2017-12-14T00:00:37.467Z",
    14              SourceServerId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/SourceResourceGroup/providers/Microsoft.DBforPostgreSQL/servers/sourceserver",
    15          },
    16          ResourceGroupName = "TargetResourceGroup",
    17          ServerName = "targetserver",
    18          Sku = new AzureNative.DBforPostgreSQL.Inputs.SkuArgs
    19          {
    20              Capacity = 2,
    21              Family = "Gen5",
    22              Name = "B_Gen5_2",
    23              Tier = "Basic",
    24          },
    25          Tags = 
    26          {
    27              { "ElasticServer", "1" },
    28          },
    29      });
    30  
    31  });
    32