Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
9 changes: 9 additions & 0 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,15 @@ objects:
update_url: 'projects/{{project}}/regions/{{region}}/forwardingRules/{{name}}/setLabels'
update_verb: :POST
min_version: beta
# While this field doesn't appear in the resource definition in the docs,
# it's present in Get and Insert, and the resource has no Update/Patch call.
- !ruby/object:Api::Type::Boolean
name: 'allPorts'
description: |
When the load balancing scheme is INTERNAL and protocol is TCP/UDP, omit
`port`/`port_range` and specify this field as `true` to allow packets addressed
to any ports to be forwarded to the backends configured with this forwarding rule.
min_version: beta
- !ruby/object:Api::Type::Enum
name: 'networkTier'
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ resource "google_compute_forwarding_rule" "foobar" {
name = "%s"
load_balancing_scheme = "INTERNAL"
backend_service = "${google_compute_region_backend_service.foobar-bs.self_link}"
<% unless version == 'ga' -%>
all_ports = true
<% else -%>
ports = ["80"]
<% end -%>
network = "${google_compute_network.foobar.name}"
subnetwork = "%s"
}
Expand Down