Make google_compute_router_nat's source_ip_ranges_to_nat Required (#2749)

<!-- This change is generated by MagicModules. -->
/cc @rileykarson
This commit is contained in:
The Magician 2018-12-26 18:00:46 -08:00 committed by Riley Karson
parent 91a513ab83
commit a3caf90b4f
2 changed files with 7 additions and 2 deletions

View File

@ -22,9 +22,14 @@ var (
Required: true,
ForceNew: true,
},
// this field is optional with a default in the API, but we
// don't have the ability to support complex defaults inside
// nested fields
"source_ip_ranges_to_nat": {
Type: schema.TypeSet,
Optional: true,
Required: true,
MinItems: 1,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
},

View File

@ -149,7 +149,7 @@ The `subnetwork` block supports:
* `name` - (Required) The `self_link` of the subnetwork to NAT.
* `source_ip_ranges_to_nat` - (Optional) List of options for which source IPs in the subnetwork
* `source_ip_ranges_to_nat` - (Required) List of options for which source IPs in the subnetwork
should have NAT enabled. Supported values include: `ALL_IP_RANGES`,
`LIST_OF_SECONDARY_IP_RANGES`, `PRIMARY_IP_RANGE`