You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add BlockSchema HTTP client and struct model
Closes#172
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Edward Park <[email protected]>
https://www.notion.so/prefect/Design-Block-support-in-the-Terraform-Provider-ae2ea25a18864de9b51b8aa06af9486b?pvs=4
In order to create a Block, we need a block_type.id and a block_schema.id. So we'll want an HTTP client for block_schema, so we can fetch one
Things we'll probably need:
api.BlockSchema
(struct) - in internal/apiapi.BlockSchemaFilter
(struct) - in internal/api -- this is the filter payload on the search requestBlockSchemaClient interface{}
- in internal/clientfunc (c *BlockSchemaClient) List(ctx context.Context, blockTypeSlugs []string) ([]*api.BlockSchema, error)
- in internal/clienthttps://app.prefect.cloud/api/docs#tag/Block-schemas/operation/read_block_schemas_api_accounts__account_id__workspaces__workspace_id__block_schemas_filter_post
The text was updated successfully, but these errors were encountered: