diff --git a/pkg/sdk/poc/generator/template_executors.go b/pkg/sdk/poc/generator/template_executors.go index 365d0eb0db..2304177830 100644 --- a/pkg/sdk/poc/generator/template_executors.go +++ b/pkg/sdk/poc/generator/template_executors.go @@ -30,7 +30,7 @@ func GenerateInterface(writer io.Writer, def *Interface) { } func generateHelperMethods(writer io.Writer, hm *ResourceHelperMethod) { - printTo(writer, HelperMethodTemplate, hm) + printTo(writer, ResourceHelperMethodTemplate, hm) } func generateOptionsStruct(writer io.Writer, operation *Operation) { diff --git a/pkg/sdk/poc/generator/templates.go b/pkg/sdk/poc/generator/templates.go index cfd6087d63..a4e8e505f8 100644 --- a/pkg/sdk/poc/generator/templates.go +++ b/pkg/sdk/poc/generator/templates.go @@ -24,9 +24,9 @@ var ( structTemplateContent string StructTemplate, _ = template.New("structTemplate").Parse(structTemplateContent) - //go:embed templates/helper_method.tmpl - helperMethodTemplateContent string - HelperMethodTemplate, _ = template.New("helperMethodTemplate").Parse(helperMethodTemplateContent) + //go:embed templates/resource_helper_method.tmpl + resourceHelperMethodTemplateContent string + ResourceHelperMethodTemplate, _ = template.New("helperMethodTemplate").Parse(resourceHelperMethodTemplateContent) //go:embed templates/dto_declarations.tmpl dtoDeclarationsTemplateContent string diff --git a/pkg/sdk/poc/generator/templates/helper_method.tmpl b/pkg/sdk/poc/generator/templates/resource_helper_method.tmpl similarity index 74% rename from pkg/sdk/poc/generator/templates/helper_method.tmpl rename to pkg/sdk/poc/generator/templates/resource_helper_method.tmpl index 6a5de7535c..b573de755f 100644 --- a/pkg/sdk/poc/generator/templates/helper_method.tmpl +++ b/pkg/sdk/poc/generator/templates/resource_helper_method.tmpl @@ -1,4 +1,4 @@ -{{- /*gotype: github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator.HelperMethod*/ -}} +{{- /*gotype: github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk/poc/generator.ResourceHelperMethod*/ -}} func (v *{{ .StructName }}) {{ .Name }}() {{ .ReturnType }} { return {{ .ReturnValue }}