Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

## Bug Fixes

* Fixes `IngressAttributes` field decoding in `PolicySetVersion` by @rageshganeshkumar [#1164](https://github.com/hashicorp/go-tfe/pull/1164)

## Enhancements
* Add support for querying and filtering private registry modules based on a search query, `provider`, `registry_name` and `organization_name`, by @gautambaghel [#1179](https://github.com/hashicorp/go-tfe/pull/1179)
* Adds support for `RegistryModule` VCS source_directory and tag_prefix options, by @jillrami [#1154] (https://github.com/hashicorp/go-tfe/pull/1154)
Expand Down
8 changes: 7 additions & 1 deletion policy_set_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ type PolicySetVersionStatusTimestamps struct {
ErroredAt time.Time `jsonapi:"attr,errored-at,rfc3339"`
}

type PolicySetIngressAttributes struct {
CommitSHA string `jsonapi:"attr,commit-sha"`
CommitURL string `jsonapi:"attr,commit-url"`
Identifier string `jsonapi:"attr,identifier"`
}

// PolicySetVersion represents a Terraform Enterprise Policy Set Version
type PolicySetVersion struct {
ID string `jsonapi:"primary,policy-set-versions"`
Expand All @@ -77,7 +83,7 @@ type PolicySetVersion struct {
ErrorMessage string `jsonapi:"attr,error-message"`
CreatedAt time.Time `jsonapi:"attr,created-at,iso8601"`
UpdatedAt time.Time `jsonapi:"attr,updated-at,iso8601"`
IngressAttributes *IngressAttributes `jsonapi:"attr,ingress-attributes"`
IngressAttributes *PolicySetIngressAttributes `jsonapi:"attr,ingress-attributes"`

// Relations
PolicySet *PolicySet `jsonapi:"relation,policy-set"`
Expand Down
Loading