Skip to content

Commit

Permalink
update doc links comments (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
uturunku1 committed Apr 6, 2022
1 parent 1700275 commit 1a5f688
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions agent_pool.go
Expand Up @@ -55,6 +55,7 @@ type AgentPool struct {
}

// A list of relations to include
// https://www.terraform.io/cloud-docs/api-docs/agents#available-related-resources
type AgentPoolIncludeOpt string

const AgentPoolWorkspaces AgentPoolIncludeOpt = "workspaces"
Expand All @@ -66,6 +67,8 @@ type AgentPoolReadOptions struct {
// AgentPoolListOptions represents the options for listing agent pools.
type AgentPoolListOptions struct {
ListOptions
// Optional: A list of relations to include. See available resources
// https://www.terraform.io/cloud-docs/api-docs/agents#available-related-resources
Include []AgentPoolIncludeOpt `url:"include,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion helper_test.go
Expand Up @@ -13,7 +13,7 @@ import (
"testing"
"time"

"github.com/hashicorp/go-uuid"
uuid "github.com/hashicorp/go-uuid"
)

const badIdentifier = "! / nope" //nolint
Expand Down
5 changes: 4 additions & 1 deletion policy_check.go
Expand Up @@ -111,6 +111,7 @@ type PolicyStatusTimestamps struct {
}

// A list of relations to include
// https://www.terraform.io/cloud-docs/api-docs/policy-checks#available-related-resources
type PolicyCheckIncludeOpt string

const (
Expand All @@ -122,7 +123,9 @@ const (
type PolicyCheckListOptions struct {
ListOptions

Include []PolicyCheckIncludeOpt `url:"include,omitempty"` // optional
// Optional: A list of relations to include. See available resources
// https://www.terraform.io/cloud-docs/api-docs/policy-checks#available-related-resources
Include []PolicyCheckIncludeOpt `url:"include,omitempty"`
}

// List all policy checks of the given run.
Expand Down
3 changes: 2 additions & 1 deletion policy_set.go
Expand Up @@ -88,6 +88,7 @@ type PolicySet struct {
}

// PolicySetIncludeOpt represents the available options for include query params.
// https://www.terraform.io/cloud-docs/api-docs/policy-sets#available-related-resources
type PolicySetIncludeOpt string

const (
Expand All @@ -110,7 +111,7 @@ type PolicySetListOptions struct {
// https://www.terraform.io/docs/cloud/api/policy-sets.html#relationships
type PolicySetReadOptions struct {
// Optional: A list of relations to include. See available resources
// https://www.terraform.io/cloud-docs/api-docs/policy-sets#relationships
// https://www.terraform.io/cloud-docs/api-docs/policy-sets#available-related-resources
Include []PolicySetIncludeOpt `url:"include,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion tfe.go
Expand Up @@ -21,7 +21,7 @@ import (
"time"

"github.com/google/go-querystring/query"
"github.com/hashicorp/go-cleanhttp"
cleanhttp "github.com/hashicorp/go-cleanhttp"
retryablehttp "github.com/hashicorp/go-retryablehttp"
"github.com/hashicorp/jsonapi"
"golang.org/x/time/rate"
Expand Down

0 comments on commit 1a5f688

Please sign in to comment.