Skip to content

Commit

Permalink
fix: nexted account set ids are computed only
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Jun 18, 2024
1 parent 68c00a7 commit 596837b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BIN_OUT_DIR := out
BINARY := $(BIN_OUT_DIR)/terraform-provider-cala

version = 0.0.13
version = 0.0.14
os_arch = $(shell go env GOOS)_$(shell go env GOARCH)
provider_path = registry.terraform.io/galoymoney/cala/$(version)/$(os_arch)/

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/balance_sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "cala_balance_sheet" "balance_sheet" {

- `id` (String) ID of the journal associated with the balance sheet.

### Optional
### Read-Only

- `assets_account_set_id` (String) ID of the account set for assets.
- `liabilities_account_set_id` (String) ID of the account set for liabilities.
Expand Down
2 changes: 1 addition & 1 deletion examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ terraform {
required_providers {
cala = {
source = "registry.terraform.io/galoymoney/cala"
version = "0.0.13"
version = "0.0.14"
}
}
}
14 changes: 0 additions & 14 deletions provider/resource_balance_sheet.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,72 +53,58 @@ func (r *BalanceSheetResource) Schema(ctx context.Context, req resource.SchemaRe
},
"assets_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for assets.",
Optional: true,
Computed: true,
},
"liabilities_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for liabilities.",
Optional: true,
Computed: true,
},
"schedule1_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 1.",
Optional: true,
Computed: true,
},
"schedule2_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 2.",
Optional: true,
Computed: true,
},
"schedule3_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 3.",
Optional: true,
Computed: true,
},
"schedule4_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 4.",
Optional: true,
Computed: true,
},
"schedule5_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 5.",
Optional: true,
Computed: true,
},
"schedule6_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 6.",
Optional: true,
Computed: true,
},
"schedule7_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 7.",
Optional: true,
Computed: true,
},
"schedule8_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 8.",
Optional: true,
Computed: true,
},
"schedule9_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 9.",
Optional: true,
Computed: true,
},
"schedule10_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 10.",
Optional: true,
Computed: true,
},
"schedule11_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 11.",
Optional: true,
Computed: true,
},
"schedule12_account_set_id": schema.StringAttribute{
MarkdownDescription: "ID of the account set for schedule 12.",
Optional: true,
Computed: true,
},
},
Expand Down

0 comments on commit 596837b

Please sign in to comment.