From 938041f37ba229c5baca59ac555b64834af17f6d Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Tue, 9 Jun 2020 15:19:14 +0000 Subject: [PATCH] add matcher attribute to contentmatchers (#3607) * add matcher attribute to contentmatcher * removed the required field as its mandatory * tab removed and used spaces Signed-off-by: Modular Magician --- google/monitoring_uptime_check_config.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/google/monitoring_uptime_check_config.go b/google/monitoring_uptime_check_config.go index b3a2115b3..590b78634 100644 --- a/google/monitoring_uptime_check_config.go +++ b/google/monitoring_uptime_check_config.go @@ -126,6 +126,13 @@ func expandMonitoringUptimeCheckConfigContentMatchers(v interface{}, d Terraform transformed["content"] = transformedContent } + transformedMatcher, err := expandMonitoringUptimeCheckConfigContentMatchersMatcher(original["matcher"], d, config) + if err != nil { + return nil, err + } else if val := reflect.ValueOf(transformedMatcher); val.IsValid() && !isEmptyValue(val) { + transformed["matcher"] = transformedMatcher + } + req = append(req, transformed) } return req, nil @@ -135,6 +142,10 @@ func expandMonitoringUptimeCheckConfigContentMatchersContent(v interface{}, d Te return v, nil } +func expandMonitoringUptimeCheckConfigContentMatchersMatcher(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { + return v, nil +} + func expandMonitoringUptimeCheckConfigSelectedRegions(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) { return v, nil }