diff --git a/selectel/dbaas_base_schemas.go b/selectel/dbaas_base_schemas.go index b1d41eb4..1b79e9e7 100644 --- a/selectel/dbaas_base_schemas.go +++ b/selectel/dbaas_base_schemas.go @@ -47,11 +47,6 @@ func resourceDBaaSDatastoreV1BaseSchema() map[string]*schema.Schema { Type: schema.TypeString, Computed: true, }, - "backup_retention_days": { - Type: schema.TypeInt, - Optional: true, - Description: "Number of days to retain backups.", - }, "connections": { Type: schema.TypeMap, Computed: true, diff --git a/selectel/schema_selectel_dbaas_datastore_v1.go b/selectel/schema_selectel_dbaas_datastore_v1.go index 95e06ae7..fe06e4bf 100644 --- a/selectel/schema_selectel_dbaas_datastore_v1.go +++ b/selectel/schema_selectel_dbaas_datastore_v1.go @@ -11,6 +11,7 @@ func resourceDBaaSDatastoreV1Schema() map[string]*schema.Schema { Type: schema.TypeInt, Optional: true, Description: "Number of days to retain backups.", + Default: 7, } datastoreSchema["pooler"] = &schema.Schema{ Type: schema.TypeSet, diff --git a/selectel/schema_selectel_dbaas_mysql_datastore_v1.go b/selectel/schema_selectel_dbaas_mysql_datastore_v1.go index 253ecb58..3d1509c2 100644 --- a/selectel/schema_selectel_dbaas_mysql_datastore_v1.go +++ b/selectel/schema_selectel_dbaas_mysql_datastore_v1.go @@ -8,6 +8,7 @@ func resourceDBaaSMySQLDatastoreV1Schema() map[string]*schema.Schema { Type: schema.TypeInt, Optional: true, Description: "Number of days to retain backups.", + Default: 7, } datastoreSchema["restore"] = &schema.Schema{ Type: schema.TypeSet, diff --git a/selectel/schema_selectel_dbaas_postgresql_datastore_v1.go b/selectel/schema_selectel_dbaas_postgresql_datastore_v1.go index 60bb67c9..fd70aa58 100644 --- a/selectel/schema_selectel_dbaas_postgresql_datastore_v1.go +++ b/selectel/schema_selectel_dbaas_postgresql_datastore_v1.go @@ -11,6 +11,7 @@ func resourceDBaaSPostgreSQLDatastoreV1Schema() map[string]*schema.Schema { Type: schema.TypeInt, Optional: true, Description: "Number of days to retain backups.", + Default: 7, } datastoreSchema["pooler"] = &schema.Schema{ Type: schema.TypeSet, diff --git a/selectel/schema_selectel_dbaas_redis_datastore_v1.go b/selectel/schema_selectel_dbaas_redis_datastore_v1.go index c21b1412..8f96aa06 100644 --- a/selectel/schema_selectel_dbaas_redis_datastore_v1.go +++ b/selectel/schema_selectel_dbaas_redis_datastore_v1.go @@ -8,6 +8,7 @@ func resourceDBaaSRedisDatastoreV1Schema() map[string]*schema.Schema { Type: schema.TypeInt, Optional: true, Description: "Number of days to retain backups.", + Default: 7, } datastoreSchema["restore"] = &schema.Schema{ Type: schema.TypeSet, diff --git a/website/docs/r/dbaas_mysql_datastore_v1.html.markdown b/website/docs/r/dbaas_mysql_datastore_v1.html.markdown index 1812cc58..ad12bfee 100644 --- a/website/docs/r/dbaas_mysql_datastore_v1.html.markdown +++ b/website/docs/r/dbaas_mysql_datastore_v1.html.markdown @@ -68,6 +68,8 @@ resource "selectel_dbaas_mysql_datastore_v1" "datastore_1" { * replica - (Required) Number of public IPs associated with the replicas. The minimum value is `0`. The maximum value must be 1 less than the value of the `node_count` argument. +* `backup_retention_days` - (Optional) Number of days to retain backups. + ## Attributes Reference * `status` - Datastore status. diff --git a/website/docs/r/dbaas_postgresql_datastore_v1.html.markdown b/website/docs/r/dbaas_postgresql_datastore_v1.html.markdown index 7b503584..e48d0b33 100644 --- a/website/docs/r/dbaas_postgresql_datastore_v1.html.markdown +++ b/website/docs/r/dbaas_postgresql_datastore_v1.html.markdown @@ -98,6 +98,8 @@ resource "selectel_dbaas_postgresql_datastore_v1" "datastore_1" { * replica - (Required) Number of public IPs associated with the replicas. The minimum value is `0`. The maximum value must be 1 less than the value of the `node_count` argument. +* `backup_retention_days` - (Optional) Number of days to retain backups. + ## Attributes Reference * `status` - Datastore status. diff --git a/website/docs/r/dbaas_redis_datastore_v1.html.markdown b/website/docs/r/dbaas_redis_datastore_v1.html.markdown index 64664209..2ebd453d 100644 --- a/website/docs/r/dbaas_redis_datastore_v1.html.markdown +++ b/website/docs/r/dbaas_redis_datastore_v1.html.markdown @@ -59,6 +59,8 @@ resource "selectel_dbaas_redis_datastore_v1" "datastore_1" { * replica - (Required) Number of public IPs associated with the replicas. The minimum value is `0`. The maximum value must be 1 less than the value of the `node_count` argument. +* `backup_retention_days` - (Optional) Number of days to retain backups. + ## Attributes Reference * `status` - Datastore status.