88 "github.com/elastic/terraform-provider-elasticstack/generated/kbapi"
99 "github.com/elastic/terraform-provider-elasticstack/internal/clients"
1010 "github.com/elastic/terraform-provider-elasticstack/internal/utils"
11+ "github.com/elastic/terraform-provider-elasticstack/internal/utils/typeutils"
1112 "github.com/hashicorp/terraform-plugin-framework-jsontypes/jsontypes"
1213 "github.com/hashicorp/terraform-plugin-framework/diag"
1314 "github.com/hashicorp/terraform-plugin-framework/types"
@@ -120,10 +121,10 @@ func (m *SecurityListModel) fromAPI(ctx context.Context, apiList *kbapi.Security
120121 }
121122 m .ID = types .StringValue (compId .String ())
122123
123- m .ListID = utils .StringishValue (apiList .Id )
124- m .Name = utils .StringishValue (apiList .Name )
125- m .Description = utils .StringishValue (apiList .Description )
126- m .Type = utils .StringishValue (apiList .Type )
124+ m .ListID = typeutils .StringishValue (apiList .Id )
125+ m .Name = typeutils .StringishValue (apiList .Name )
126+ m .Description = typeutils .StringishValue (apiList .Description )
127+ m .Type = typeutils .StringishValue (apiList .Type )
127128 m .Immutable = types .BoolValue (apiList .Immutable )
128129 m .Version = types .Int64Value (int64 (apiList .Version ))
129130 m .TieBreakerID = types .StringValue (apiList .TieBreakerId )
@@ -133,11 +134,11 @@ func (m *SecurityListModel) fromAPI(ctx context.Context, apiList *kbapi.Security
133134 m .UpdatedBy = types .StringValue (apiList .UpdatedBy )
134135
135136 // Set optional _version field
136- m .VersionID = utils .StringishPointerValue (apiList .UnderscoreVersion )
137+ m .VersionID = typeutils .StringishPointerValue (apiList .UnderscoreVersion )
137138
138- m .Deserializer = utils .StringishPointerValue (apiList .Deserializer )
139+ m .Deserializer = typeutils .StringishPointerValue (apiList .Deserializer )
139140
140- m .Serializer = utils .StringishPointerValue (apiList .Serializer )
141+ m .Serializer = typeutils .StringishPointerValue (apiList .Serializer )
141142
142143 if apiList .Meta != nil {
143144 metaBytes , err := json .Marshal (apiList .Meta )
0 commit comments