Skip to content

Commit

Permalink
fix: Incompatible schema defined for `mongodbatlas_backup_compliance_…
Browse files Browse the repository at this point in the history
…policy` (#1799)
  • Loading branch information
andreaangiolillo committed Jan 3, 2024
1 parent f1d7c89 commit a5a2333
Showing 1 changed file with 17 additions and 20 deletions.
Expand Up @@ -44,8 +44,7 @@ func DataSource() *schema.Resource {
},
"on_demand_policy_item": {
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"id": {
Expand Down Expand Up @@ -93,8 +92,7 @@ func DataSource() *schema.Resource {
},
"policy_item_hourly": {
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"id": {
Expand All @@ -107,23 +105,22 @@ func DataSource() *schema.Resource {
},
"frequency_interval": {
Type: schema.TypeInt,
Required: true,
Computed: true,
},
"retention_value": {
Type: schema.TypeInt,
Required: true,
Computed: true,
},
"retention_unit": {
Type: schema.TypeString,
Required: true,
Computed: true,
},
},
},
},
"policy_item_daily": {
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"id": {
Expand All @@ -136,22 +133,22 @@ func DataSource() *schema.Resource {
},
"frequency_interval": {
Type: schema.TypeInt,
Required: true,
Computed: true,
},
"retention_unit": {
Type: schema.TypeString,
Required: true,
Computed: true,
},
"retention_value": {
Type: schema.TypeInt,
Required: true,
Computed: true,
},
},
},
},
"policy_item_weekly": {
Type: schema.TypeList,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"id": {
Expand All @@ -164,22 +161,22 @@ func DataSource() *schema.Resource {
},
"frequency_interval": {
Type: schema.TypeInt,
Required: true,
Computed: true,
},
"retention_unit": {
Type: schema.TypeString,
Required: true,
Computed: true,
},
"retention_value": {
Type: schema.TypeInt,
Required: true,
Computed: true,
},
},
},
},
"policy_item_monthly": {
Type: schema.TypeList,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"id": {
Expand All @@ -192,15 +189,15 @@ func DataSource() *schema.Resource {
},
"frequency_interval": {
Type: schema.TypeInt,
Required: true,
Computed: true,
},
"retention_unit": {
Type: schema.TypeString,
Required: true,
Computed: true,
},
"retention_value": {
Type: schema.TypeInt,
Required: true,
Computed: true,
},
},
},
Expand Down

0 comments on commit a5a2333

Please sign in to comment.