Skip to content

Commit

Permalink
SCALRCORE-18479 > Remove state version files, add new attribute to wo…
Browse files Browse the repository at this point in the history
…rkspace, [API_BRANCH]
  • Loading branch information
Artem Vang committed Jun 17, 2021
1 parent fcb5361 commit e070056
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 255 deletions.
2 changes: 0 additions & 2 deletions scalr.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ type Client struct {
Runs Runs
Variables Variables
Workspaces Workspaces
StateVersions StateVersions
Endpoints Endpoints
Webhooks Webhooks
Environments Environments
Expand Down Expand Up @@ -178,7 +177,6 @@ func NewClient(cfg *Config) (*Client, error) {
client.Runs = &runs{client: client}
client.Variables = &variables{client: client}
client.Workspaces = &workspaces{client: client}
client.StateVersions = &state_versions{client: client}
client.Endpoints = &endpoints{client: client}
client.Webhooks = &webhooks{client: client}
client.ConfigurationVersions = &configurationVersions{client: client}
Expand Down
135 changes: 0 additions & 135 deletions state_version.go

This file was deleted.

118 changes: 0 additions & 118 deletions state_version_test.go

This file was deleted.

1 change: 1 addition & 0 deletions workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type Workspace struct {
TerraformVersion string `jsonapi:"attr,terraform-version"`
VCSRepo *VCSRepo `jsonapi:"attr,vcs-repo"`
WorkingDirectory string `jsonapi:"attr,working-directory"`
HasActiveState bool `jsonapi:"attr,has-active-state"`

// Relations
CurrentRun *Run `jsonapi:"relation,current-run"`
Expand Down

0 comments on commit e070056

Please sign in to comment.