Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jbristowe committed Nov 17, 2020
1 parent 5d90685 commit 01daf53
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions octopusdeploy/schema_variable.go
Expand Up @@ -73,65 +73,65 @@ func getVariableDataSchema() map[string]*schema.Schema {

func getVariableSchema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"project_id": {
Required: true,
Type: schema.TypeString,
},
"name": {
Required: true,
Type: schema.TypeString,
},
"type": {
Required: true,
Type: schema.TypeString,
ValidateDiagFunc: validateDiagFunc(validation.StringInSlice([]string{
"String",
"Sensitive",
"Certificate",
"AmazonWebServicesAccount",
"AzureAccount",
}, false)),
},
"value": {
ConflictsWith: []string{"sensitive_value"},
Optional: true,
Type: schema.TypeString,
},
"sensitive_value": {
ConflictsWith: []string{"value"},
Optional: true,
Sensitive: true,
Type: schema.TypeString,
},
"description": {
Optional: true,
Type: schema.TypeString,
},
"encrypted_value": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
},
"scope": schemaVariableScope,
"is_sensitive": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Optional: true,
Type: schema.TypeBool,
},
"key_fingerprint": {
Computed: true,
Type: schema.TypeString,
},
"name": {
Required: true,
Type: schema.TypeString,
},
"pgp_key": {
ForceNew: true,
Optional: true,
Sensitive: true,
Type: schema.TypeString,
},
"project_id": {
Required: true,
Type: schema.TypeString,
},
"prompt": {
Elem: &schema.Resource{Schema: getVariablePromptOptionsSchema()},
MaxItems: 1,
Optional: true,
Type: schema.TypeSet,
},
"pgp_key": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Sensitive: true,
"scope": schemaVariableScope,
"sensitive_value": {
ConflictsWith: []string{"value"},
Optional: true,
Sensitive: true,
Type: schema.TypeString,
},
"key_fingerprint": {
"type": {
Required: true,
Type: schema.TypeString,
Computed: true,
ValidateDiagFunc: validateDiagFunc(validation.StringInSlice([]string{
"AmazonWebServicesAccount",
"Certificate",
"AzureAccount",
"Sensitive",
"String",
}, false)),
},
"value": {
ConflictsWith: []string{"sensitive_value"},
Optional: true,
Type: schema.TypeString,
},
}
}

0 comments on commit 01daf53

Please sign in to comment.