From f87224e42970e7e12a248f14ebd7488d7b0c0392 Mon Sep 17 00:00:00 2001 From: magodo Date: Tue, 22 Nov 2022 10:05:37 +0800 Subject: [PATCH] Add placeholder for custom set function Relates-to: https://github.com/hashicorp/terraform-provider-azurerm/issues/14736 --- internal/tools/generator-schema-snapshot/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/tools/generator-schema-snapshot/main.go b/internal/tools/generator-schema-snapshot/main.go index 12a010afb226..118aa0616da6 100644 --- a/internal/tools/generator-schema-snapshot/main.go +++ b/internal/tools/generator-schema-snapshot/main.go @@ -98,5 +98,9 @@ func SchemaValue(sch *pluginsdk.Schema) Dict { out[Id("Elem")] = Op("&").Qual(SchemaPath, "Resource").Values(ResourceValue(sch)) } + if sch.Set != nil { + out[Id("Set")] = Id("TODO") + } + return out }