Skip to content

Commit

Permalink
Merge pull request #7 from komminarlabs/tk/release
Browse files Browse the repository at this point in the history
match schema to api
  • Loading branch information
thulasirajkomminar authored Sep 2, 2024
2 parents 86a20e7 + 127e25f commit 60fe4d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/block.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Create a new block in a pipeline.
- `extension_uuid` (String) The extension uuid.
- `language` (String) The language.
- `priority` (Number) The priority.
- `upstream_blocks` (Set of String) The block UUIDs that this block depends on.

### Read-Only

Expand All @@ -39,6 +38,7 @@ Create a new block in a pipeline.
- `retry_config` (Attributes) The blocks objects of a block. (see [below for nested schema](#nestedatt--retry_config))
- `status` (String) Status of block: `executed`, `failed`, `not_executed`, `updated`.
- `timeout` (Number) The timeout.
- `upstream_blocks` (Set of String) The block UUIDs that this block depends on.
- `uuid` (String) Unique identifier for the block.

<a id="nestedatt--configuration"></a>
Expand Down
3 changes: 2 additions & 1 deletion internal/provider/block_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/setdefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
Expand Down Expand Up @@ -194,8 +195,8 @@ func (r *BlockResource) Schema(ctx context.Context, req resource.SchemaRequest,
},
"upstream_blocks": schema.SetAttribute{
Computed: true,
Optional: true,
Description: "The block UUIDs that this block depends on.",
Default: setdefault.StaticValue(types.SetUnknown(types.StringType)),
ElementType: types.StringType,
},
"uuid": schema.StringAttribute{
Expand Down

0 comments on commit 60fe4d6

Please sign in to comment.