@@ -14,28 +14,16 @@ import (
1414 "github.com/hashicorp/terraform-plugin-framework/tfsdk"
1515)
1616
17- // ApplyResourceChangeClientCapabilities allows Terraform to publish information
18- // regarding optionally supported protocol features for the
19- // ApplyResourceChange RPC, such as forward-compatible Terraform behavior
20- // changes.
21- type ApplyResourceChangeClientCapabilities struct {
22- // WriteOnlyAttributesAllowed indicates that the Terraform client
23- // initiating the request supports write-only attributes for managed
24- // resources.
25- WriteOnlyAttributesAllowed bool
26- }
27-
2817// ApplyResourceChangeRequest is the framework server request for the
2918// ApplyResourceChange RPC.
3019type ApplyResourceChangeRequest struct {
31- ClientCapabilities ApplyResourceChangeClientCapabilities
32- Config * tfsdk.Config
33- PlannedPrivate * privatestate.Data
34- PlannedState * tfsdk.Plan
35- PriorState * tfsdk.State
36- ProviderMeta * tfsdk.Config
37- ResourceSchema fwschema.Schema
38- Resource resource.Resource
20+ Config * tfsdk.Config
21+ PlannedPrivate * privatestate.Data
22+ PlannedState * tfsdk.Plan
23+ PriorState * tfsdk.State
24+ ProviderMeta * tfsdk.Config
25+ ResourceSchema fwschema.Schema
26+ Resource resource.Resource
3927}
4028
4129// ApplyResourceChangeResponse is the framework server response for the
@@ -57,13 +45,12 @@ func (s *Server) ApplyResourceChange(ctx context.Context, req *ApplyResourceChan
5745 logging .FrameworkTrace (ctx , "ApplyResourceChange received no PriorState, running CreateResource" )
5846
5947 createReq := & CreateResourceRequest {
60- ClientCapabilities : req .ClientCapabilities ,
61- Config : req .Config ,
62- PlannedPrivate : req .PlannedPrivate ,
63- PlannedState : req .PlannedState ,
64- ProviderMeta : req .ProviderMeta ,
65- ResourceSchema : req .ResourceSchema ,
66- Resource : req .Resource ,
48+ Config : req .Config ,
49+ PlannedPrivate : req .PlannedPrivate ,
50+ PlannedState : req .PlannedState ,
51+ ProviderMeta : req .ProviderMeta ,
52+ ResourceSchema : req .ResourceSchema ,
53+ Resource : req .Resource ,
6754 }
6855 createResp := & CreateResourceResponse {}
6956
@@ -102,14 +89,13 @@ func (s *Server) ApplyResourceChange(ctx context.Context, req *ApplyResourceChan
10289 logging .FrameworkTrace (ctx , "ApplyResourceChange running UpdateResource" )
10390
10491 updateReq := & UpdateResourceRequest {
105- ClientCapabilities : req .ClientCapabilities ,
106- Config : req .Config ,
107- PlannedPrivate : req .PlannedPrivate ,
108- PlannedState : req .PlannedState ,
109- PriorState : req .PriorState ,
110- ProviderMeta : req .ProviderMeta ,
111- ResourceSchema : req .ResourceSchema ,
112- Resource : req .Resource ,
92+ Config : req .Config ,
93+ PlannedPrivate : req .PlannedPrivate ,
94+ PlannedState : req .PlannedState ,
95+ PriorState : req .PriorState ,
96+ ProviderMeta : req .ProviderMeta ,
97+ ResourceSchema : req .ResourceSchema ,
98+ Resource : req .Resource ,
11399 }
114100 updateResp := & UpdateResourceResponse {}
115101
0 commit comments