You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -34,20 +33,10 @@ func (s SpaceDefaultRetentionPolicySchema) GetDatasourceSchema() ds.Schema {
34
33
"retention_type": util.ResourceString().Description("The type of retention policy.").Required().Validators(stringvalidator.OneOf("LifecycleRelease", "LifecycleTentacle")).Build(),
35
34
36
35
// response
37
-
"id": GetIdDatasourceSchema(true),
38
-
},
39
-
Blocks: map[string]ds.Block{
40
-
"retention_policy": schema.SingleNestedBlock{
41
-
Description: "The default retention policy for the space.",
42
-
Attributes: map[string]ds.Attribute{
43
-
"id": util.ResourceString().Description("The ID of the retention policy.").Computed().Build(),
44
-
"space_id": util.ResourceString().Description("The ID of the space.").Computed().Build(),
45
-
"retention_type": util.ResourceString().Description("The type of retention policy.").Computed().Build(),
46
-
"strategy": util.ResourceString().Description("The strategy for the retention policy.").Computed().Build(),
47
-
"quantity_to_keep": util.ResourceInt64().Description("The quantity of items to keep.").Computed().Optional().Build(),
48
-
"unit": util.ResourceString().Description("The unit of time for the retention policy.").Computed().Optional().Build(),
49
-
},
50
-
},
36
+
"id": util.ResourceString().Description("The ID of the retention policy.").Computed().Build(),
37
+
"strategy": util.ResourceString().Description("The strategy for the retention policy.").Computed().Build(),
38
+
"quantity_to_keep": util.ResourceInt64().Description("The quantity of items to keep.").Computed().Optional().Build(),
39
+
"unit": util.ResourceString().Description("The unit of time for the retention policy.").Computed().Optional().Build(),
51
40
},
52
41
}
53
42
}
@@ -57,8 +46,10 @@ func (s SpaceDefaultRetentionPolicySchema) GetResourceSchema() rs.Schema {
0 commit comments