From cbfffb01bb9656ec923624f52714c842db097fb7 Mon Sep 17 00:00:00 2001 From: Thomas Felix Date: Thu, 19 Nov 2026 11:09:03 +0100 Subject: [PATCH] feat(client): read updateableByConsumer of a building block input meshStack reports for each input of a building block whether a consumer may change it after creation. The Terraform provider needs this to plan a replacement instead of an update that meshStack would reject. Co-Authored-By: Claude Fable 5.2 --- client/building_block_v2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/building_block_v2.go b/client/building_block_v2.go index 01d204dc..be957098 100644 --- a/client/building_block_v2.go +++ b/client/building_block_v2.go @@ -76,6 +76,8 @@ type MeshBuildingBlockInput struct { ValueType *enum.Entry[MeshBuildingBlockIOType] `json:"valueType,omitzero" tfsdk:"-"` AssignmentType enum.Entry[MeshBuildingBlockInputAssignmentType] `json:"assignmentType,omitempty" tfsdk:"-"` + UpdateableByConsumer *bool `json:"updateableByConsumer,omitzero" tfsdk:"-"` + // IsSensitive decides the case of Value: [types.Secret] when true, [types.Any] otherwise. // [types.Variant] decodes into X first, so UnmarshalJSONFrom moves a non-sensitive value that also // decodes as a Secret over to Y.