From d7eff9a9d94148ae4879cdf2d73e66c81f99f272 Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 29 Oct 2021 13:33:48 -0700 Subject: [PATCH] GA encrypted_interconnect_router on compute router (#5397) (#358) * GA encrypted_interconnect_router on compute router * Readd note on encrypted interconnect not being GA Signed-off-by: Modular Magician --- converters/google/resources/compute_router.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/converters/google/resources/compute_router.go b/converters/google/resources/compute_router.go index 979da07f6..17dd849d0 100644 --- a/converters/google/resources/compute_router.go +++ b/converters/google/resources/compute_router.go @@ -96,6 +96,12 @@ func GetComputeRouterApiObject(d TerraformResourceData, config *Config) (map[str } else if v, ok := d.GetOkExists("bgp"); ok || !reflect.DeepEqual(v, bgpProp) { obj["bgp"] = bgpProp } + encryptedInterconnectRouterProp, err := expandComputeRouterEncryptedInterconnectRouter(d.Get("encrypted_interconnect_router"), d, config) + if err != nil { + return nil, err + } else if v, ok := d.GetOkExists("encrypted_interconnect_router"); !isEmptyValue(reflect.ValueOf(encryptedInterconnectRouterProp)) && (ok || !reflect.DeepEqual(v, encryptedInterconnectRouterProp)) { + obj["encryptedInterconnectRouter"] = encryptedInterconnectRouterProp + } regionProp, err := expandComputeRouterRegion(d.Get("region"), d, config) if err != nil { return nil, err @@ -211,6 +217,10 @@ func expandComputeRouterBgpAdvertisedIpRangesDescription(v interface{}, d Terraf return v, nil } +func expandComputeRouterEncryptedInterconnectRouter(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +} + func expandComputeRouterRegion(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { f, err := parseGlobalFieldValue("regions", v.(string), "project", d, config, true) if err != nil {