@@ -13,7 +13,6 @@ import (
13
13
"github.com/hashicorp/terraform-plugin-framework/list"
14
14
"github.com/hashicorp/terraform-plugin-framework/resource"
15
15
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
16
- "github.com/hashicorp/terraform-plugin-go/tfprotov5"
17
16
"github.com/hashicorp/terraform-plugin-go/tftypes"
18
17
)
19
18
@@ -50,8 +49,6 @@ type ListResultsStream struct {
50
49
// Results is a function that emits [ListResult] values via its push
51
50
// function argument.
52
51
Results iter.Seq [ListResult ]
53
-
54
- ResultsProtoV5 iter.Seq [tfprotov5.ListResourceResult ]
55
52
}
56
53
57
54
func ListResultError (summary string , detail string ) ListResult {
@@ -62,18 +59,6 @@ func ListResultError(summary string, detail string) ListResult {
62
59
}
63
60
}
64
61
65
- func ListResultErrorProto5 (summary string , detail string ) tfprotov5.ListResourceResult {
66
- return tfprotov5.ListResourceResult {
67
- Diagnostics : []* tfprotov5.Diagnostic {
68
- {
69
- Severity : 1 ,
70
- Summary : summary ,
71
- Detail : detail ,
72
- },
73
- },
74
- }
75
- }
76
-
77
62
// ListResult represents a listed managed resource instance.
78
63
type ListResult struct {
79
64
// Identity is the identity of the managed resource instance. A nil value
@@ -121,8 +106,6 @@ func (s *Server) ListResource(ctx context.Context, fwReq *ListRequest, fwStream
121
106
if listResourceWithConfigure , ok := listResource .(list.ListResourceWithConfigure ); ok {
122
107
logging .FrameworkTrace (ctx , "ListResource implements ListResourceWithConfigure" )
123
108
124
- // ListResourceConfigureData isn't populated in the ConfigureProvider RPC
125
- // We can use ResourceConfigureData here for now or populate ListResourceConfigureData
126
109
configureReq := resource.ConfigureRequest {
127
110
ProviderData : s .ListResourceConfigureData ,
128
111
}
0 commit comments