@@ -24,8 +24,8 @@ type List interface {
2424 // such as examplecloud_thing..
2525 Metadata (context.Context , MetadataRequest , * MetadataResponse )
2626
27- // Schema should return the schema for list blocks.
28- ListSchema (context.Context , SchemaRequest , SchemaResponse )
27+ // ListConfigSchema should return the schema for list blocks.
28+ ListConfigSchema (context.Context , SchemaRequest , SchemaResponse )
2929
3030 // ListResources is called when the provider must list instances of a
3131 // managed resource type that satisfy a user-provided request.
@@ -38,9 +38,7 @@ type List interface {
3838type ListWithConfigure interface {
3939 List
4040
41- // Configure enables provider-level data or clients to be set in the
42- // provider-defined Resource type. It is separately executed for each
43- // ReadResource RPC.
41+ // Configure enables provider-level data or clients to be set.
4442 Configure (context.Context , ConfigureRequest , * ConfigureResponse )
4543}
4644
@@ -110,8 +108,18 @@ type ListResponse struct {
110108// function implementation will emit zero or more results for a user-provided
111109// request.
112110type ListResult struct {
113- Identity tfsdk.ResourceIdentity
114- Resource tfsdk.ResourceObject
111+ // Identity is the identity of the managed resource instance.
112+ //
113+ // A nil value will raise will raise a diagnostic.
114+ Identity * tfsdk.ResourceIdentity
115+
116+ // ResourceObject is the provider's representation of all attributes of the
117+ // managed resource instance.
118+ //
119+ // If ListRequest.IncludeResourceObject is true, a nil value will raise
120+ // a warning diagnostic.
121+ Resource * tfsdk.ResourceObject
122+
115123 DisplayName string
116124 Diagnostics diag.Diagnostics
117125}
0 commit comments