From 6e76ecdd8b96d0c44bebf92abf440fcf7b813c36 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Wed, 18 Dec 2024 19:26:25 +0000 Subject: [PATCH] b/383149651 - Make export ranges fields immutable (#12592) [upstream:0eaffcc8f23d4e647a92bd489f1cbaf72a88f471] Signed-off-by: Modular Magician --- .changelog/12592.txt | 3 +++ .../resource_network_connectivity_spoke.go | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 .changelog/12592.txt diff --git a/.changelog/12592.txt b/.changelog/12592.txt new file mode 100644 index 00000000000..0e55cfbdb84 --- /dev/null +++ b/.changelog/12592.txt @@ -0,0 +1,3 @@ +```release-note:bug +networkconnectivity: made `includeExportRanges`, `excludeExportRanges` mutable in `google_network_connectivity_spoke` to avoid recreation of resources (b/383149651) +``` \ No newline at end of file diff --git a/google/services/networkconnectivity/resource_network_connectivity_spoke.go b/google/services/networkconnectivity/resource_network_connectivity_spoke.go index ab58d1e0abb..3d05f114bab 100644 --- a/google/services/networkconnectivity/resource_network_connectivity_spoke.go +++ b/google/services/networkconnectivity/resource_network_connectivity_spoke.go @@ -155,7 +155,6 @@ The only allowed value for now is "ALL_IPV4_RANGES".`, "exclude_export_ranges": { Type: schema.TypeList, Optional: true, - ForceNew: true, Description: `IP ranges encompassing the subnets to be excluded from peering.`, Elem: &schema.Schema{ Type: schema.TypeString, @@ -164,7 +163,6 @@ The only allowed value for now is "ALL_IPV4_RANGES".`, "include_export_ranges": { Type: schema.TypeList, Optional: true, - ForceNew: true, Description: `IP ranges allowed to be included from peering.`, Elem: &schema.Schema{ Type: schema.TypeString, @@ -246,7 +244,6 @@ The only allowed value for now is "ALL_IPV4_RANGES".`, "exclude_export_ranges": { Type: schema.TypeList, Optional: true, - ForceNew: true, Description: `IP ranges encompassing the subnets to be excluded from peering.`, Elem: &schema.Schema{ Type: schema.TypeString, @@ -255,7 +252,6 @@ The only allowed value for now is "ALL_IPV4_RANGES".`, "include_export_ranges": { Type: schema.TypeList, Optional: true, - ForceNew: true, Description: `IP ranges allowed to be included from peering.`, Elem: &schema.Schema{ Type: schema.TypeString,