Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/fwserver/server_listresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ type ListRequest struct {
// Resource field in the ListResult struct.
IncludeResource bool

// Limit specifies the maximum number of results that Terraform is
// expecting.
Limit int64

ResourceSchema fwschema.Schema
ResourceIdentitySchema fwschema.Schema
}
Expand Down Expand Up @@ -91,6 +95,7 @@ func (s *Server) ListResource(ctx context.Context, fwReq *ListRequest, fwStream
req := list.ListRequest{
Config: *fwReq.Config,
IncludeResource: fwReq.IncludeResource,
Limit: fwReq.Limit,
ResourceSchema: fwReq.ResourceSchema,
ResourceIdentitySchema: fwReq.ResourceIdentitySchema,
}
Expand Down
1 change: 1 addition & 0 deletions internal/proto5server/server_listresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (s *Server) ListResource(ctx context.Context, protoReq *tfprotov5.ListResou
ResourceSchema: resourceSchema,
ResourceIdentitySchema: identitySchema,
IncludeResource: protoReq.IncludeResource,
Limit: protoReq.Limit,
}
stream := &fwserver.ListResultsStream{}

Expand Down
1 change: 1 addition & 0 deletions internal/proto6server/server_listresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (s *Server) ListResource(ctx context.Context, protoReq *tfprotov6.ListResou
ResourceSchema: resourceSchema,
ResourceIdentitySchema: identitySchema,
IncludeResource: protoReq.IncludeResource,
Limit: protoReq.Limit,
}
stream := &fwserver.ListResultsStream{}

Expand Down
4 changes: 4 additions & 0 deletions list/list_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ type ListRequest struct {
// [ListResult.Resource] field.
IncludeResource bool

// Limit specifies the maximum number of results that Terraform is
// expecting.
Limit int64

ResourceSchema fwschema.Schema
ResourceIdentitySchema fwschema.Schema
}
Expand Down