diff --git a/.changelog/8984.txt b/.changelog/8984.txt new file mode 100644 index 00000000000..f8924118aa6 --- /dev/null +++ b/.changelog/8984.txt @@ -0,0 +1,4 @@ +```release-note:bug +compute: updated the `autoscaling_policy.mode` to accept `ONLY_SCALE_OUT` on `google_compute_autoscaler` + +``` diff --git a/google/services/compute/resource_compute_autoscaler.go b/google/services/compute/resource_compute_autoscaler.go index bd292c4c7c2..8ff939552aa 100644 --- a/google/services/compute/resource_compute_autoscaler.go +++ b/google/services/compute/resource_compute_autoscaler.go @@ -186,11 +186,10 @@ Stackdriver Monitoring metric. Possible values: ["GAUGE", "DELTA_PER_SECOND", "D }, }, "mode": { - Type: schema.TypeString, - Optional: true, - ValidateFunc: verify.ValidateEnum([]string{"OFF", "ONLY_UP", "ON", ""}), - Description: `Defines operating mode for this policy. Default value: "ON" Possible values: ["OFF", "ONLY_UP", "ON"]`, - Default: "ON", + Type: schema.TypeString, + Optional: true, + Description: `Defines operating mode for this policy.`, + Default: "ON", }, "scale_in_control": { Type: schema.TypeList, diff --git a/google/services/compute/resource_compute_region_autoscaler.go b/google/services/compute/resource_compute_region_autoscaler.go index 4bbf0b19429..b5b0d2ba246 100644 --- a/google/services/compute/resource_compute_region_autoscaler.go +++ b/google/services/compute/resource_compute_region_autoscaler.go @@ -186,11 +186,10 @@ Stackdriver Monitoring metric. Possible values: ["GAUGE", "DELTA_PER_SECOND", "D }, }, "mode": { - Type: schema.TypeString, - Optional: true, - ValidateFunc: verify.ValidateEnum([]string{"OFF", "ONLY_UP", "ON", ""}), - Description: `Defines operating mode for this policy. Default value: "ON" Possible values: ["OFF", "ONLY_UP", "ON"]`, - Default: "ON", + Type: schema.TypeString, + Optional: true, + Description: `Defines operating mode for this policy.`, + Default: "ON", }, "scale_in_control": { Type: schema.TypeList, diff --git a/website/docs/r/compute_autoscaler.html.markdown b/website/docs/r/compute_autoscaler.html.markdown index 57ed25d9bb2..ad0f50a2ef6 100644 --- a/website/docs/r/compute_autoscaler.html.markdown +++ b/website/docs/r/compute_autoscaler.html.markdown @@ -251,8 +251,6 @@ The following arguments are supported: * `mode` - (Optional) Defines operating mode for this policy. - Default value is `ON`. - Possible values are: `OFF`, `ONLY_UP`, `ON`. * `scale_down_control` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html)) diff --git a/website/docs/r/compute_region_autoscaler.html.markdown b/website/docs/r/compute_region_autoscaler.html.markdown index 31403059894..348f03de786 100644 --- a/website/docs/r/compute_region_autoscaler.html.markdown +++ b/website/docs/r/compute_region_autoscaler.html.markdown @@ -170,8 +170,6 @@ The following arguments are supported: * `mode` - (Optional) Defines operating mode for this policy. - Default value is `ON`. - Possible values are: `OFF`, `ONLY_UP`, `ON`. * `scale_down_control` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))