-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Admin Terraform Versions API #186
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sooo excited for this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// AdminTerraformVersionUpdateOptions for updating terraform version. | ||
// https://www.terraform.io/docs/cloud/api/admin/terraform-versions.html#request-body | ||
type AdminTerraformVersionUpdateOptions struct { | ||
Type string `jsonapi:"primary,terraform-versions"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like what you landed on here, with Type
used in *Options
but leaving the necessary tag as ID
in the struct (since jsonapi does say it should be used on the primary key) Nice work!
One thing I'd consider adding in your followup is a docstring indicating what this is for in each *Options
(something far more helpful than "Internal use only!"); maybe even just See /link/to/readme
🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄 .
adding in your followup is a docstring indicating what this is for
👍 will do
Description
This PR adds all the Admin TerraformVersions API.
It implements:
Testing plan
Output from tests
External links