From 2b2d3e39e508993c02b0304c583ce64ed167721a Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 24 Jan 2024 08:18:04 -0800 Subject: [PATCH] Add `STANDARD_WITH_GRAPHQL` option to `json_parsing` field in `google_compute_security_policy` resource (#9871) (#17097) * Add `STANDARD_WITH_GRAPHQL` option to `advanced_options_config` * Update resource_compute_security_policy_test.go.erb [upstream:d26f4576e5aad587d2342d3852cd04845116320d] Signed-off-by: Modular Magician --- .changelog/9871.txt | 3 +++ google/services/compute/resource_compute_security_policy.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/9871.txt diff --git a/.changelog/9871.txt b/.changelog/9871.txt new file mode 100644 index 00000000000..5a3db373404 --- /dev/null +++ b/.changelog/9871.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +compute: updated the `google_compute_security_policy` resource's `json_parsing` field to accept the value STANDARD_WITH_GRAPHQL +``` diff --git a/google/services/compute/resource_compute_security_policy.go b/google/services/compute/resource_compute_security_policy.go index 887454211aa..54517f254ba 100644 --- a/google/services/compute/resource_compute_security_policy.go +++ b/google/services/compute/resource_compute_security_policy.go @@ -360,7 +360,7 @@ func ResourceComputeSecurityPolicy() *schema.Resource { Type: schema.TypeString, Optional: true, Computed: true, - ValidateFunc: validation.StringInSlice([]string{"DISABLED", "STANDARD"}, false), + ValidateFunc: validation.StringInSlice([]string{"DISABLED", "STANDARD", "STANDARD_WITH_GRAPHQL"}, false), Description: `JSON body parsing. Supported values include: "DISABLED", "STANDARD".`, }, "json_custom_config": {