Skip to content

Commit 963307e

Browse files
Bugfix: Use API's default value for enableEndpointIndependentMapping (#8600) (#15478)
Instead of using a hardcode default of `false` for `enableEndpointIndependentMapping`, use the default value from the API. Signed-off-by: Modular Magician <[email protected]>
1 parent 68ba80f commit 963307e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.changelog/8600.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```release-note:bug
2+
compute: used APIs default value for field `enable_endpoint_independent_mapping` in resource `google_compute_router_nat`
3+
4+
```

google/services/compute/resource_compute_router_nat.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ Mutually exclusive with enableEndpointIndependentMapping.`,
247247
},
248248
"enable_endpoint_independent_mapping": {
249249
Type: schema.TypeBool,
250+
Computed: true,
250251
Optional: true,
251-
Description: `Specifies if endpoint independent mapping is enabled. This is enabled by default. For more information
252-
see the [official documentation](https://cloud.google.com/nat/docs/overview#specs-rfcs).`,
253-
Default: true,
252+
Description: `Enable endpoint independent mapping.
253+
For more information see the [official documentation](https://cloud.google.com/nat/docs/overview#specs-rfcs).`,
254254
},
255255
"icmp_idle_timeout_sec": {
256256
Type: schema.TypeInt,

website/docs/r/compute_router_nat.html.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ The following arguments are supported:
280280

281281
* `enable_endpoint_independent_mapping` -
282282
(Optional)
283-
Specifies if endpoint independent mapping is enabled. This is enabled by default. For more information
284-
see the [official documentation](https://cloud.google.com/nat/docs/overview#specs-rfcs).
283+
Enable endpoint independent mapping.
284+
For more information see the [official documentation](https://cloud.google.com/nat/docs/overview#specs-rfcs).
285285

286286
* `region` -
287287
(Optional)

0 commit comments

Comments
 (0)