Skip to content

Commit 382026e

Browse files
committed
computed true on values that arent required
1 parent 7545ddc commit 382026e

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

internal/provider/resource_tfe_opa_version.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,19 @@ func (r *OPAVersionResource) Schema(ctx context.Context, req resource.SchemaRequ
7171
},
7272
"official": schema.BoolAttribute{
7373
Optional: true,
74+
Computed: true,
7475
},
7576
"enabled": schema.BoolAttribute{
7677
Optional: true,
78+
Computed: true,
7779
},
7880
"beta": schema.BoolAttribute{
7981
Optional: true,
82+
Computed: true,
8083
},
8184
"deprecated": schema.BoolAttribute{
8285
Optional: true,
86+
Computed: true,
8387
},
8488
"deprecated_reason": schema.StringAttribute{
8589
Optional: true,

internal/provider/resource_tfe_sentinel_version.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,19 @@ func (r *sentinelVersionResource) Schema(ctx context.Context, req resource.Schem
6666
},
6767
"official": schema.BoolAttribute{
6868
Optional: true,
69+
Computed: true,
6970
},
7071
"enabled": schema.BoolAttribute{
7172
Optional: true,
73+
Computed: true,
7274
},
7375
"beta": schema.BoolAttribute{
7476
Optional: true,
77+
Computed: true,
7578
},
7679
"deprecated": schema.BoolAttribute{
7780
Optional: true,
81+
Computed: true,
7882
},
7983
"deprecated_reason": schema.StringAttribute{
8084
Optional: true,

internal/provider/resource_tfe_terraform_version.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,19 @@ func (r *terraformVersionResource) Schema(ctx context.Context, req resource.Sche
7272
},
7373
"official": schema.BoolAttribute{
7474
Optional: true,
75+
Computed: true,
7576
},
7677
"enabled": schema.BoolAttribute{
7778
Optional: true,
79+
Computed: true,
7880
},
7981
"beta": schema.BoolAttribute{
8082
Optional: true,
83+
Computed: true,
8184
},
8285
"deprecated": schema.BoolAttribute{
8386
Optional: true,
87+
Computed: true,
8488
},
8589
"deprecated_reason": schema.StringAttribute{
8690
Optional: true,

0 commit comments

Comments
 (0)