Skip to content

Commit

Permalink
Update secondary_ip_range docs for sending an empty array (GoogleCl…
Browse files Browse the repository at this point in the history
…oudPlatform#3083)

* Update docs for secondary_ip_range
  • Loading branch information
c2thorn authored and Nathan Klish committed May 18, 2020
1 parent d992823 commit da5762c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions products/compute/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1843,9 +1843,12 @@ overrides: !ruby/object:Overrides::ResourceOverrides
schema_config_mode_attr: true
send_empty_value: true
description: |
{{description}}This field uses attr-as-block mode to avoid breaking
users during the 0.12 upgrade. See [the Attr-as-Block page](https://www.terraform.io/docs/configuration/attr-as-blocks.html)
for more details.
{{description}}
**Note**: This field uses [attr-as-block mode](https://www.terraform.io/docs/configuration/attr-as-blocks.html) to avoid
breaking users during the 0.12 upgrade. To explicitly send a list
of zero objects you must use the following syntax:
`example=[]`
For more details about this behavior, see [this section](https://www.terraform.io/docs/configuration/attr-as-blocks.html#defining-a-fixed-object-collection-value).
secondaryIpRanges.rangeName: !ruby/object:Overrides::Terraform::PropertyOverride
validation: !ruby/object:Provider::Terraform::Validation
function: 'validateGCPName'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ The following arguments are supported:

* `guest_accelerator` - (Optional) List of the type and count of accelerator cards attached to the instance. Structure documented below.
**Note:** GPU accelerators can only be used with [`on_host_maintenance`](#on_host_maintenance) option set to TERMINATE.
**Note**: This field uses [attr-as-block mode](https://www.terraform.io/docs/configuration/attr-as-blocks.html) to avoid
breaking users during the 0.12 upgrade. To explicitly send a list
of zero objects you must use the following syntax:
`example=[]`
For more details about this behavior, see [this section](https://www.terraform.io/docs/configuration/attr-as-blocks.html#defining-a-fixed-object-collection-value).

* `labels` - (Optional) A map of key/value label pairs to assign to the instance.

Expand Down

0 comments on commit da5762c

Please sign in to comment.