Use-cases
I am using
List(ctx context.Context, organization string, options *WorkspaceListOptions) (*WorkspaceList, error)
to retrieve workspaces with specific filters. However, there is currently no way to filter workspaces by the no-code module they are associated with.
Attempted Solutions
I think it would be helpful to expose module or nocdoemodule as an attribute on the Workspace struct:
https://github.com/hashicorp/go-tfe/blob/45476cfe5c7b5e75e7398939acf49eadf86291de/workspace.go#L186C6-L186C15
This would allow clients to filter workspaces based on the specific module they are using.
Proposal