go-tfe icon indicating copy to clipboard operation
go-tfe copied to clipboard

[Feature Request] Add "provider-binary-uploaded" to response

Open straubt1 opened this issue 2 years ago • 1 comments

When dealing with Provider Platforms within the Registry, there is an attribute that is helpful to determine if a platform version has been created, but has not been uploaded with the binary.

Request to have RegistryProviderPlatforms.List() and RegistryProviderPlatforms.Read() functions return the "provider-binary-uploaded" attribute of a registry provider platform.

Public Docs: https://www.terraform.io/cloud-docs/api-docs/private-registry/provider-versions-platforms#get-all-platforms-for-a-single-version

Go struct: https://github.com/hashicorp/go-tfe/blob/main/registry_provider_platform.go#L35

Potential code change

ProviderBinaryUploaded bool   `json:"provider-binary-uploaded"`

straubt1 avatar Jul 18 '22 21:07 straubt1

Thank you for submitting this issue! That seems like a reasonable request. ❤️

annawinkler avatar Jul 22 '22 19:07 annawinkler

Addressed in merged PR.

annawinkler avatar Feb 07 '23 22:02 annawinkler