diff --git a/converters/google/resources/compute_ha_vpn_gateway.go b/converters/google/resources/compute_ha_vpn_gateway.go index c1007fe50..17cab5eea 100644 --- a/converters/google/resources/compute_ha_vpn_gateway.go +++ b/converters/google/resources/compute_ha_vpn_gateway.go @@ -69,6 +69,12 @@ func GetComputeHaVpnGatewayApiObject(d TerraformResourceData, config *Config) (m } else if v, ok := d.GetOkExists("network"); !isEmptyValue(reflect.ValueOf(networkProp)) && (ok || !reflect.DeepEqual(v, networkProp)) { obj["network"] = networkProp } + stackTypeProp, err := expandComputeHaVpnGatewayStackType(d.Get("stack_type"), d, config) + if err != nil { + return nil, err + } else if v, ok := d.GetOkExists("stack_type"); !isEmptyValue(reflect.ValueOf(stackTypeProp)) && (ok || !reflect.DeepEqual(v, stackTypeProp)) { + obj["stackType"] = stackTypeProp + } vpnInterfacesProp, err := expandComputeHaVpnGatewayVpnInterfaces(d.Get("vpn_interfaces"), d, config) if err != nil { return nil, err @@ -101,6 +107,10 @@ func expandComputeHaVpnGatewayNetwork(v interface{}, d TerraformResourceData, co return f.RelativeLink(), nil } +func expandComputeHaVpnGatewayStackType(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +} + func expandComputeHaVpnGatewayVpnInterfaces(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { l := v.([]interface{}) req := make([]interface{}, 0, len(l))