Automation API Go SDK: Expsoe the version in the UpdateSummary struct. (#6339)
This commit is contained in:
parent
0fe4978a7a
commit
bcd14d8060
|
@ -3,6 +3,9 @@ CHANGELOG
|
|||
|
||||
## HEAD (Unreleased)
|
||||
|
||||
- [automation/go] Exposing the version in the UpdateSummary struct.
|
||||
[#6339](https://github.com/pulumi/pulumi/pull/6339)
|
||||
|
||||
- [CLI] Add pagination options to `pulumi stack history` (`--page`, `--page-size`). These replace the `--limit` flag.
|
||||
[#6292](https://github.com/pulumi/pulumi/pull/6292)
|
||||
|
||||
|
|
|
@ -758,6 +758,7 @@ func TestNewStackInlineSource(t *testing.T) {
|
|||
assert.True(t, res.Outputs["exp_secret"].Secret)
|
||||
assert.Equal(t, "update", res.Summary.Kind)
|
||||
assert.Equal(t, "succeeded", res.Summary.Result)
|
||||
assert.Greater(t, res.Summary.Version, 0)
|
||||
|
||||
// -- pulumi preview --
|
||||
|
||||
|
|
|
@ -626,6 +626,7 @@ func (s *Stack) Import(ctx context.Context, state apitype.UntypedDeployment) err
|
|||
|
||||
// UpdateSummary provides a summary of a Stack lifecycle operation (up/preview/refresh/destroy).
|
||||
type UpdateSummary struct {
|
||||
Version int `json:"version"`
|
||||
Kind string `json:"kind"`
|
||||
StartTime string `json:"startTime"`
|
||||
Message string `json:"message"`
|
||||
|
|
Loading…
Reference in a new issue