@@ -52,6 +52,7 @@ func resourceVertexAIFeaturestoreEntitytypeFeature() *schema.Resource {
52
52
"value_type" : {
53
53
Type : schema .TypeString ,
54
54
Required : true ,
55
+ ForceNew : true ,
55
56
Description : `Type of Feature value. Immutable. https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes.features#ValueType` ,
56
57
},
57
58
"description" : {
@@ -243,12 +244,6 @@ func resourceVertexAIFeaturestoreEntitytypeFeatureUpdate(d *schema.ResourceData,
243
244
} else if v , ok := d .GetOkExists ("description" ); ! isEmptyValue (reflect .ValueOf (v )) && (ok || ! reflect .DeepEqual (v , descriptionProp )) {
244
245
obj ["description" ] = descriptionProp
245
246
}
246
- valueTypeProp , err := expandVertexAIFeaturestoreEntitytypeFeatureValueType (d .Get ("value_type" ), d , config )
247
- if err != nil {
248
- return err
249
- } else if v , ok := d .GetOkExists ("value_type" ); ! isEmptyValue (reflect .ValueOf (v )) && (ok || ! reflect .DeepEqual (v , valueTypeProp )) {
250
- obj ["valueType" ] = valueTypeProp
251
- }
252
247
253
248
url , err := replaceVars (d , config , "{{VertexAIBasePath}}{{entitytype}}/features/{{name}}" )
254
249
if err != nil {
@@ -265,10 +260,6 @@ func resourceVertexAIFeaturestoreEntitytypeFeatureUpdate(d *schema.ResourceData,
265
260
if d .HasChange ("description" ) {
266
261
updateMask = append (updateMask , "description" )
267
262
}
268
-
269
- if d .HasChange ("value_type" ) {
270
- updateMask = append (updateMask , "valueType" )
271
- }
272
263
// updateMask is a URL parameter but not present in the schema, so replaceVars
273
264
// won't set it
274
265
url , err = addQueryParams (url , map [string ]string {"updateMask" : strings .Join (updateMask , "," )})
0 commit comments