From 59a7fc3732c2ce3fb005d2c420ac072e9a7d2158 Mon Sep 17 00:00:00 2001 From: megan07 Date: Mon, 19 Jul 2021 13:17:17 -0500 Subject: [PATCH] set optional computed on fields that are conditional to balancing_mode (#4975) --- mmv1/products/compute/api.yaml | 5 +---- mmv1/products/compute/terraform.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/mmv1/products/compute/api.yaml b/mmv1/products/compute/api.yaml index 43e2f60f6216..52bca0da0661 100644 --- a/mmv1/products/compute/api.yaml +++ b/mmv1/products/compute/api.yaml @@ -920,12 +920,9 @@ objects: either maxRate or maxRatePerEndpoint must be set. - !ruby/object:Api::Type::Double name: 'maxUtilization' - send_empty_value: true - default_value: 0.8 description: | Used when balancingMode is UTILIZATION. This ratio defines the - CPU utilization target for the group. The default is 0.8. Valid - range is [0.0, 1.0]. + CPU utilization target for the group. Valid range is [0.0, 1.0]. - !ruby/object:Api::Type::NestedObject name: 'circuitBreakers' description: | diff --git a/mmv1/products/compute/terraform.yaml b/mmv1/products/compute/terraform.yaml index 378339fbbc30..788eab65b5f7 100644 --- a/mmv1/products/compute/terraform.yaml +++ b/mmv1/products/compute/terraform.yaml @@ -258,6 +258,20 @@ overrides: !ruby/object:Overrides::ResourceOverrides set_hash_func: 'resourceGoogleComputeBackendServiceBackendHash' backends.group: !ruby/object:Overrides::Terraform::PropertyOverride diff_suppress_func: 'compareSelfLinkRelativePaths' + backends.maxConnections: !ruby/object:Overrides::Terraform::PropertyOverride + default_from_api: true + backends.maxConnectionsPerEndpoint: !ruby/object:Overrides::Terraform::PropertyOverride + default_from_api: true + backends.maxConnectionsPerInstance: !ruby/object:Overrides::Terraform::PropertyOverride + default_from_api: true + backends.maxRate: !ruby/object:Overrides::Terraform::PropertyOverride + default_from_api: true + backends.maxRatePerEndpoint: !ruby/object:Overrides::Terraform::PropertyOverride + default_from_api: true + backends.maxRatePerInstance: !ruby/object:Overrides::Terraform::PropertyOverride + default_from_api: true + backends.maxUtilization: !ruby/object:Overrides::Terraform::PropertyOverride + default_from_api: true cdnPolicy: !ruby/object:Overrides::Terraform::PropertyOverride default_from_api: true cdnPolicy.cacheKeyPolicy.queryStringWhitelist: !ruby/object:Overrides::Terraform::PropertyOverride