Skip to content

Commit ac9bba0

Browse files
committed
Fixes some query run comments and types
1 parent 95dcfbc commit ac9bba0

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Adds support for `RegistryModule` VCS source_directory and tag_prefix options, by @jillrami [#1154] (https://github.com/hashicorp/go-tfe/pull/1154)
1111
* Adds endpoint for reruning a stack deployment by @hwatkins05-hashicorp/@Maed223 [#1176](https://github.com/hashicorp/go-tfe/pull/1176)
1212
* Adds `ReadByName` for `StackDeploymentGroup` by @Maed223 [#1181](https://github.com/hashicorp/go-tfe/pull/1181)
13-
* Adds BETA support for listing `QueryRuns`, which is EXPERIMENTAL, SUBJECT TO CHANGE, and may not be available to all users by @brandonc [#1138](https://github.com/hashicorp/go-tfe/pull/1177)
13+
* Adds BETA support for listing `QueryRuns`, which is EXPERIMENTAL, SUBJECT TO CHANGE, and may not be available to all users by @brandonc [#1177](https://github.com/hashicorp/go-tfe/pull/1177)
1414

1515

1616
# v1.89.0

query_runs.go

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,36 +85,33 @@ const (
8585
)
8686

8787
const (
88-
QueryRunCreatedBy RunIncludeOpt = "created_by"
89-
QueryRunConfigVer RunIncludeOpt = "configuration_version"
88+
QueryRunCreatedBy QueryRunIncludeOpt = "created_by"
89+
QueryRunConfigVer QueryRunIncludeOpt = "configuration_version"
9090
)
9191

9292
// queryRuns implements QueryRuns.
9393
type queryRuns struct {
9494
client *Client
9595
}
9696

97-
// QueryRunList represents a list of runs.
97+
// QueryRunList represents a list of query runs.
9898
type QueryRunList struct {
9999
*Pagination
100100
Items []*QueryRun
101101
}
102102

103-
// QueryRunListOptions represents the options for listing runs.
103+
// QueryRunListOptions represents the options for listing query runs.
104104
type QueryRunListOptions struct {
105105
ListOptions
106-
// Optional: A list of relations to include. See available resources:
107-
// https://developer.hashicorp.com/terraform/cloud-docs/api-docs/run#available-related-resources
108106
Include []QueryRunIncludeOpt `url:"include,omitempty"`
109107
}
110108

109+
// QueryRunReadOptions represents the options for reading a query run.
111110
type QueryRunReadOptions struct {
112-
// Optional: A list of relations to include. See available resources:
113-
// https://developer.hashicorp.com/terraform/cloud-docs/api-docs/run#available-related-resources
114111
Include []QueryRunIncludeOpt `url:"include,omitempty"`
115112
}
116113

117-
// Run represents a Terraform Enterprise run.
114+
// QueryRun represents a Terraform Enterprise query run.
118115
type QueryRun struct {
119116
ID string `jsonapi:"primary,queries"`
120117
CreatedAt time.Time `jsonapi:"attr,created-at,iso8601"`

0 commit comments

Comments
 (0)