@@ -36,6 +36,20 @@ func UpgradeResourceStateRequest(in *tfplugin6.UpgradeResourceState_Request) *tf
3636 return resp
3737}
3838
39+ func UpgradeResourceIdentityRequest (in * tfplugin6.UpgradeResourceIdentity_Request ) * tfprotov6.UpgradeResourceIdentityRequest {
40+ if in == nil {
41+ return nil
42+ }
43+
44+ resp := & tfprotov6.UpgradeResourceIdentityRequest {
45+ RawIdentity : RawIdentity (in .RawIdentity ),
46+ TypeName : in .TypeName ,
47+ Version : in .Version ,
48+ }
49+
50+ return resp
51+ }
52+
3953func ReadResourceRequest (in * tfplugin6.ReadResource_Request ) * tfprotov6.ReadResourceRequest {
4054 if in == nil {
4155 return nil
@@ -47,6 +61,7 @@ func ReadResourceRequest(in *tfplugin6.ReadResource_Request) *tfprotov6.ReadReso
4761 ProviderMeta : DynamicValue (in .ProviderMeta ),
4862 TypeName : in .TypeName ,
4963 ClientCapabilities : ReadResourceClientCapabilities (in .ClientCapabilities ),
64+ CurrentIdentity : ResourceIdentityData (in .CurrentIdentity ),
5065 }
5166
5267 return resp
@@ -65,6 +80,7 @@ func PlanResourceChangeRequest(in *tfplugin6.PlanResourceChange_Request) *tfprot
6580 ProviderMeta : DynamicValue (in .ProviderMeta ),
6681 TypeName : in .TypeName ,
6782 ClientCapabilities : PlanResourceChangeClientCapabilities (in .ClientCapabilities ),
83+ PriorIdentity : ResourceIdentityData (in .PriorIdentity ),
6884 }
6985
7086 return resp
@@ -76,12 +92,13 @@ func ApplyResourceChangeRequest(in *tfplugin6.ApplyResourceChange_Request) *tfpr
7692 }
7793
7894 resp := & tfprotov6.ApplyResourceChangeRequest {
79- Config : DynamicValue (in .Config ),
80- PlannedPrivate : in .PlannedPrivate ,
81- PlannedState : DynamicValue (in .PlannedState ),
82- PriorState : DynamicValue (in .PriorState ),
83- ProviderMeta : DynamicValue (in .ProviderMeta ),
84- TypeName : in .TypeName ,
95+ Config : DynamicValue (in .Config ),
96+ PlannedPrivate : in .PlannedPrivate ,
97+ PlannedState : DynamicValue (in .PlannedState ),
98+ PriorState : DynamicValue (in .PriorState ),
99+ ProviderMeta : DynamicValue (in .ProviderMeta ),
100+ TypeName : in .TypeName ,
101+ PlannedIdentity : ResourceIdentityData (in .PlannedIdentity ),
85102 }
86103
87104 return resp
@@ -96,6 +113,7 @@ func ImportResourceStateRequest(in *tfplugin6.ImportResourceState_Request) *tfpr
96113 TypeName : in .TypeName ,
97114 ID : in .Id ,
98115 ClientCapabilities : ImportResourceStateClientCapabilities (in .ClientCapabilities ),
116+ Identity : ResourceIdentityData (in .Identity ),
99117 }
100118
101119 return resp
@@ -113,6 +131,7 @@ func MoveResourceStateRequest(in *tfplugin6.MoveResourceState_Request) *tfprotov
113131 SourceState : RawState (in .SourceState ),
114132 SourceTypeName : in .SourceTypeName ,
115133 TargetTypeName : in .TargetTypeName ,
134+ SourceIdentity : ResourceIdentityData (in .SourceIdentity ),
116135 }
117136
118137 return resp
0 commit comments