Skip to content

Commit 46158d2

Browse files
authored
Mark PITR config ID optional (#161)
1 parent 0997e41 commit 46158d2

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

managed/resource_pitr_clone.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ func (r resourcePitrCloneType) GetSchema(_ context.Context) (tfsdk.Schema, diag.
4949
Description: "The ID of the namespace clone.",
5050
Type: types.StringType,
5151
Computed: true,
52-
PlanModifiers: []tfsdk.AttributePlanModifier{
53-
tfsdk.UseStateForUnknown(),
54-
},
52+
Optional: true,
5553
},
5654
"clone_as": {
5755
Description: "The name for new cloned namespace.",

managed/resource_pitr_config.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ func (r resourcePitrConfigType) GetSchema(_ context.Context) (tfsdk.Schema, diag
4949
Description: "The ID of the PITR Config.",
5050
Type: types.StringType,
5151
Computed: true,
52-
PlanModifiers: []tfsdk.AttributePlanModifier{
53-
tfsdk.UseStateForUnknown(),
54-
},
52+
Optional: true,
5553
},
5654
"namespace_id": {
5755
Description: "The ID of the namespace that this PITR Config is associated to.",

managed/resource_pitr_restore.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ func (r resourcePitrRestoreType) GetSchema(_ context.Context) (tfsdk.Schema, dia
5454
Description: "The ID of the restore op via PITR Config.",
5555
Type: types.StringType,
5656
Computed: true,
57-
PlanModifiers: []tfsdk.AttributePlanModifier{
58-
tfsdk.UseStateForUnknown(),
59-
},
57+
Optional: true,
6058
},
6159
"restore_at_millis": {
6260
Description: "The time in UNIX millis to restore to via PITR Config.",

0 commit comments

Comments
 (0)