[auto/dotnet] Make StackDeployment.FromJsonString public (#7067)

* Make StackDeployment.FromJsonString public

* Update changelog

Co-authored-by: Anton Tayanovskyy <anton@pulumi.com>
This commit is contained in:
Sean Fausett 2021-05-21 01:47:44 +12:00 committed by GitHub
parent 71297a56b4
commit ae3da5e7fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
### Improvements
- [auto/dotnet] - Make StackDeployment.FromJsonString public
[#7067](https://github.com/pulumi/pulumi/pull/7067)
- [cli] - Provide user information when protected resources are not able to be deleted
[#7055](https://github.com/pulumi/pulumi/pull/7055)

View file

@ -1,3 +1,4 @@
abstract Pulumi.Automation.Workspace.GetStackOutputsAsync(string stackName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableDictionary<string, Pulumi.Automation.OutputValue>>
override Pulumi.Automation.LocalWorkspace.GetStackOutputsAsync(string stackName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableDictionary<string, Pulumi.Automation.OutputValue>>
static Pulumi.Automation.PulumiFn.Create(System.IServiceProvider serviceProvider, System.Type stackType) -> Pulumi.Automation.PulumiFn
static Pulumi.Automation.StackDeployment.FromJsonString(string jsonString) -> Pulumi.Automation.StackDeployment

View file

@ -1,6 +1,5 @@
// Copyright 2016-2021, Pulumi Corporation
using System;
using System.Text.Json;
namespace Pulumi.Automation
@ -16,7 +15,7 @@ namespace Pulumi.Automation
/// </summary>
public sealed class StackDeployment
{
internal static StackDeployment FromJsonString(string jsonString)
public static StackDeployment FromJsonString(string jsonString)
{
var json = JsonSerializer.Deserialize<JsonElement>(jsonString);
var version = json.GetProperty("version").GetInt32();