Skip to content

Commit

Permalink
Merge pull request hashicorp#76 from hashicorp/remove-cost-estimation
Browse files Browse the repository at this point in the history
Remove mentions of cost estimation pre-alpha
  • Loading branch information
davidcelis authored Jun 1, 2019
2 parents 589918c + f918133 commit f2cf23a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 226 deletions.
121 changes: 0 additions & 121 deletions cost_estimation.go

This file was deleted.

92 changes: 0 additions & 92 deletions cost_estimation_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func createPlannedRun(t *testing.T, client *Client, w *Workspace) (*Run, func())
}

switch r.Status {
case RunPlanned, RunCostEstimated, RunPolicyChecked, RunPolicyOverride:
case RunPlanned, RunPolicyChecked, RunPolicyOverride:
return r, rCleanup
}

Expand Down
7 changes: 0 additions & 7 deletions organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ type OrganizationList struct {
type Organization struct {
Name string `jsonapi:"primary,organizations"`
CollaboratorAuthPolicy AuthPolicyType `jsonapi:"attr,collaborator-auth-policy"`
CostEstimationEnabled bool `jsonapi:"attr,cost-estimation-enabled"`
CreatedAt time.Time `jsonapi:"attr,created-at,iso8601"`
Email string `jsonapi:"attr,email"`
EnterprisePlan EnterprisePlanType `jsonapi:"attr,enterprise-plan"`
Expand Down Expand Up @@ -168,9 +167,6 @@ type OrganizationCreateOptions struct {
// Authentication policy.
CollaboratorAuthPolicy *AuthPolicyType `jsonapi:"attr,collaborator-auth-policy,omitempty"`

// Enable Cost Estimation
CostEstimationEnabled *bool `jsonapi:"attr,cost-estimation-enabled,omitempty"`

// The name of the "owners" team
OwnersTeamSAMLRoleID *string `jsonapi:"attr,owners-team-saml-role-id,omitempty"`
}
Expand Down Expand Up @@ -252,9 +248,6 @@ type OrganizationUpdateOptions struct {
// Authentication policy.
CollaboratorAuthPolicy *AuthPolicyType `jsonapi:"attr,collaborator-auth-policy,omitempty"`

// Enable Cost Estimation
CostEstimationEnabled *bool `jsonapi:"attr,cost-estimation-enabled,omitempty"`

// The name of the "owners" team
OwnersTeamSAMLRoleID *string `jsonapi:"attr,owners-team-saml-role-id,omitempty"`
}
Expand Down
3 changes: 0 additions & 3 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ const (
RunApplying RunStatus = "applying"
RunCanceled RunStatus = "canceled"
RunConfirmed RunStatus = "confirmed"
RunCostEstimated RunStatus = "cost_estimated"
RunCostEstimating RunStatus = "cost_estimating"
RunDiscarded RunStatus = "discarded"
RunErrored RunStatus = "errored"
RunPending RunStatus = "pending"
Expand Down Expand Up @@ -102,7 +100,6 @@ type Run struct {
// Relations
Apply *Apply `jsonapi:"relation,apply"`
ConfigurationVersion *ConfigurationVersion `jsonapi:"relation,configuration-version"`
CostEstimation *CostEstimation `jsonapi:"relation,cost-estimation"`
Plan *Plan `jsonapi:"relation,plan"`
PolicyChecks []*PolicyCheck `jsonapi:"relation,policy-checks"`
Workspace *Workspace `jsonapi:"relation,workspace"`
Expand Down
2 changes: 0 additions & 2 deletions tfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ type Client struct {

Applies Applies
ConfigurationVersions ConfigurationVersions
CostEstimations CostEstimations
NotificationConfigurations NotificationConfigurations
OAuthClients OAuthClients
OAuthTokens OAuthTokens
Expand Down Expand Up @@ -197,7 +196,6 @@ func NewClient(cfg *Config) (*Client, error) {
// Create the services.
client.Applies = &applies{client: client}
client.ConfigurationVersions = &configurationVersions{client: client}
client.CostEstimations = &costEstimations{client: client}
client.NotificationConfigurations = &notificationConfigurations{client: client}
client.OAuthClients = &oAuthClients{client: client}
client.OAuthTokens = &oAuthTokens{client: client}
Expand Down

0 comments on commit f2cf23a

Please sign in to comment.