Skip to content

Commit

Permalink
set optional computed on fields that are conditional to balancing_mode (
Browse files Browse the repository at this point in the history
  • Loading branch information
megan07 authored Jul 19, 2021
1 parent cfeaac2 commit 59a7fc3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
5 changes: 1 addition & 4 deletions mmv1/products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
14 changes: 14 additions & 0 deletions mmv1/products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59a7fc3

Please sign in to comment.