Skip to content

Commit c1453a8

Browse files
feat: [IAC-2926]: adjust iac workspace API to support varsets (#637)
1 parent d28a9c2 commit c1453a8

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

harness/nextgen/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ type APIClient struct {
229229
ProjectGitxWebhooksApiService *ProjectGitxWebhooksApiService
230230
OrgGitxWebhooksApiService *OrgGitxWebhooksApiService
231231
ModuleRegistryApi *ModuleRegistryApiService
232+
VariableSetsApi *VariableSetsApiService
232233
}
233234

234235
type service struct {
@@ -341,6 +342,7 @@ func NewAPIClient(cfg *Configuration) *APIClient {
341342
c.ProjectGitxWebhooksApiService = (*ProjectGitxWebhooksApiService)(&c.common)
342343
c.OrgGitxWebhooksApiService = (*OrgGitxWebhooksApiService)(&c.common)
343344
c.ModuleRegistryApi = (*ModuleRegistryApiService)(&c.common)
345+
c.VariableSetsApi = (*VariableSetsApiService)(&c.common)
344346
return c
345347
}
346348

harness/nextgen/iacm_model_create_workspace_request_body.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,6 @@ type IacmCreateWorkspaceRequestBody struct {
5555
TerraformVariableFiles []IacmWorkspaceTerraformVariableFiles `json:"terraform_variable_files,omitempty"`
5656
// list of terraform variables configured on the workspace.
5757
TerraformVariables map[string]IacmVariable `json:"terraform_variables"`
58+
// Optional Variable Sets as references
59+
VariableSets []string `json:"variable_sets,omitempty"`
5860
}

harness/nextgen/iacm_model_show_workspace_response_body.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,6 @@ type IacmShowWorkspaceResponseBody struct {
7171
TerraformVariables map[string]IacmVariableResource `json:"terraform_variables"`
7272
// Modified is the unix timestamp at which the resource was last modified in milliseconds.
7373
Updated int64 `json:"updated"`
74+
// Optional Variable Sets as references
75+
VariableSets []string `json:"variable_sets,omitempty"`
7476
}

harness/nextgen/iacm_model_update_workspace_request_body.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ type IacmUpdateWorkspaceRequestBody struct {
4343
TerraformVariableFiles []IacmWorkspaceTerraformVariableFiles `json:"terraform_variable_files,omitempty"`
4444
// list of terraform variables configured on the workspace.
4545
TerraformVariables map[string]IacmVariable `json:"terraform_variables"`
46+
// Optional Variable Sets as references
47+
VariableSets []string `json:"variable_sets,omitempty"`
4648
}

0 commit comments

Comments
 (0)