Decorate the computed attribute where appropriate

This commit is contained in:
Sean Chittenden 2016-09-05 23:40:13 -07:00
parent 242405bdf1
commit 547dcf27e1
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 14 additions and 9 deletions

View File

@ -26,32 +26,37 @@ func resourcePostgreSQLDatabase() *schema.Resource {
"owner": { "owner": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Computed: true,
Description: "The role name of the user who will own the new database", Description: "The role name of the user who will own the new database",
}, },
"template": { "template": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Description: "The name of the template from which to create the new database.", Description: "The name of the template from which to create the new database",
}, },
"encoding": { "encoding": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Description: "Character set encoding to use in the new database.", Computed: true,
Description: "Character set encoding to use in the new database",
}, },
"lc_collate": { "lc_collate": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Description: "Collation order (LC_COLLATE) to use in the new database.", Computed: true,
Description: "Collation order (LC_COLLATE) to use in the new database",
}, },
"lc_ctype": { "lc_ctype": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Description: "Character classification (LC_CTYPE) to use in the new database.", Computed: true,
Description: "Character classification (LC_CTYPE) to use in the new database",
}, },
"tablespace_name": { "tablespace_name": {
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Description: "The name of the tablespace that will be associated with the new database.", Computed: true,
Description: "The name of the tablespace that will be associated with the new database",
}, },
"connection_limit": { "connection_limit": {
Type: schema.TypeInt, Type: schema.TypeInt,
@ -63,14 +68,14 @@ func resourcePostgreSQLDatabase() *schema.Resource {
"allow_connections": { "allow_connections": {
Type: schema.TypeBool, Type: schema.TypeBool,
Optional: true, Optional: true,
Default: true, Computed: true,
Description: "If false then no one can connect to this database.", Description: "If false then no one can connect to this database",
}, },
"is_template": { "is_template": {
Type: schema.TypeBool, Type: schema.TypeBool,
Optional: true, Optional: true,
Default: false, Computed: true,
Description: "If true, then this database can be cloned by any user with CREATEDB privileges.", Description: "If true, then this database can be cloned by any user with CREATEDB privileges",
}, },
}, },
} }