[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:
parent
71297a56b4
commit
ae3da5e7fe
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue