Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed Mar 15, 2021
1 parent 6490d5a commit 6fcca82
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions octopusdeploy/schema_utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,34 +399,6 @@ func getUsernameSchema(isRequired bool) *schema.Schema {
return schema
}

func getVariableScopeSchema() *schema.Schema {
return &schema.Schema{
Type: schema.TypeSet,
MaxItems: 1,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"actions": getVariableScopeValueSchema(),
"channels": getVariableScopeValueSchema(),
"environments": getVariableScopeValueSchema(),
"machines": getVariableScopeValueSchema(),
"roles": getVariableScopeValueSchema(),
"tenant_tags": getVariableScopeValueSchema(),
},
},
}
}

func getVariableScopeValueSchema() *schema.Schema {
return &schema.Schema{
Computed: true,
Description: "The scope of the variable value.",
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Type: schema.TypeList,
}
}

func getVariableTypeSchema() *schema.Schema {
return &schema.Schema{
Description: "The type of variable represented by this resource. Valid types are `AmazonWebServicesAccount`, `AzureAccount`, `Certificate`, `Sensitive`, `String`, or `WorkerPool`.",
Expand Down

0 comments on commit 6fcca82

Please sign in to comment.