Skip to content

Commit

Permalink
Merge pull request #59 from Scalr/feature/SCALRCORE-18405
Browse files Browse the repository at this point in the history
SCALRCORE-18405 Workspace > Native var-file support
  • Loading branch information
penja committed May 10, 2022
2 parents 15457c9 + ff97860 commit 08679c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type Workspace struct {
HasResources bool `jsonapi:"attr,has-resources"`
Hooks *Hooks `jsonapi:"attr,hooks"`
RunOperationTimeout *int `jsonapi:"attr,run-operation-timeout"`
VarFiles []string `jsonapi:"attr,var-files"`

// Relations
CurrentRun *Run `jsonapi:"relation,current-run"`
Expand Down Expand Up @@ -178,6 +179,9 @@ type WorkspaceCreateOptions struct {
// Specifies the AgentPool for workspace.
AgentPool *AgentPool `jsonapi:"relation,agent-pool,omitempty"`

// Specifies the VarFiles for workspace.
VarFiles []string `jsonapi:"attr,var-files"`

// Specifies the ModuleVersion based on create workspace
ModuleVersion *ModuleVersion `jsonapi:"relation,module-version,omitempty"`

Expand Down Expand Up @@ -338,6 +342,9 @@ type WorkspaceUpdateOptions struct {
// Specifies the AgentPool for workspace.
AgentPool *AgentPool `jsonapi:"relation,agent-pool"`

//Specifies the VarFiles for workspace.
VarFiles []string `jsonapi:"attr,var_files"`

// Specifies the ModuleVersion based on create workspace
ModuleVersion *ModuleVersion `jsonapi:"relation,module-version"`

Expand Down

0 comments on commit 08679c7

Please sign in to comment.