diff --git a/google/resource_compute_target_http_proxy.go b/google/resource_compute_target_http_proxy.go index db3cdfb9..51e7dc39 100644 --- a/google/resource_compute_target_http_proxy.go +++ b/google/resource_compute_target_http_proxy.go @@ -184,6 +184,8 @@ func resourceComputeTargetHttpProxyUpdate(d *schema.ResourceData, meta interface var res map[string]interface{} op := &compute.Operation{} + d.Partial(true) + if d.HasChange("url_map") { descriptionProp, err := expandComputeTargetHttpProxyDescription(d.Get("description"), d, config) if err != nil { @@ -224,8 +226,12 @@ func resourceComputeTargetHttpProxyUpdate(d *schema.ResourceData, meta interface if err != nil { return err } + + d.SetPartial("url_map") } + d.Partial(false) + return resourceComputeTargetHttpProxyRead(d, meta) } diff --git a/google/resource_compute_target_ssl_proxy.go b/google/resource_compute_target_ssl_proxy.go index 9b3fa31e..032345f6 100644 --- a/google/resource_compute_target_ssl_proxy.go +++ b/google/resource_compute_target_ssl_proxy.go @@ -210,6 +210,8 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{ var res map[string]interface{} op := &compute.Operation{} + d.Partial(true) + if d.HasChange("proxy_header") { descriptionProp, err := expandComputeTargetSslProxyDescription(d.Get("description"), d, config) if err != nil { @@ -260,6 +262,8 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{ if err != nil { return err } + + d.SetPartial("proxy_header") } if d.HasChange("backend_service") { descriptionProp, err := expandComputeTargetSslProxyDescription(d.Get("description"), d, config) @@ -311,6 +315,8 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{ if err != nil { return err } + + d.SetPartial("backend_service") } if d.HasChange("ssl_certificates") { descriptionProp, err := expandComputeTargetSslProxyDescription(d.Get("description"), d, config) @@ -362,8 +368,12 @@ func resourceComputeTargetSslProxyUpdate(d *schema.ResourceData, meta interface{ if err != nil { return err } + + d.SetPartial("ssl_certificates") } + d.Partial(false) + return resourceComputeTargetSslProxyRead(d, meta) }