Skip to content

Commit 2e72ae2

Browse files
Add bandwidthAllocation field to wireGroup Resource (#15169)
1 parent 5652bb1 commit 2e72ae2

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

mmv1/products/compute/WireGroup.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,18 @@ properties:
151151
enum_values:
152152
- 'NONE'
153153
- 'DISABLE_PORT'
154+
- name: bandwidthAllocation
155+
type: enum
156+
required: true
157+
description: |
158+
The configuration of a wire's bandwidth allocation.
159+
ALLOCATE_PER_WIRE: configures a separate unmetered bandwidth allocation (and associated charges) for each wire in the group.
160+
SHARED_WITH_WIRE_GROUP: this is the default behavior, which configures one unmetered bandwidth allocation for the wire group. The unmetered bandwidth is divided equally across each wire in the group, but dynamic
161+
throttling reallocates unused unmetered bandwidth from unused or underused wires to other wires in the group.
162+
enum_values:
163+
- 'UNSPECIFIED_BANDWIDTH_ALLOCATION'
164+
- 'ALLOCATE_PER_WIRE'
165+
- 'SHARED_WITH_WIRE_GROUP'
154166
- name: wires
155167
type: Array
156168
description: |

mmv1/templates/terraform/examples/compute_wire_group_basic.tf.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ resource "google_compute_wire_group" "{{$.PrimaryResourceId}}" {
1919
wire_properties {
2020
bandwidth_unmetered = 10
2121
fault_response = "NONE"
22+
bandwidth_allocation = "ALLOCATE_PER_WIRE"
2223
}
2324
wire_group_properties {
2425
type = "WIRE"

mmv1/third_party/terraform/services/compute/resource_compute_wire_group_test.go.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ resource "google_compute_wire_group" "example-test-wire-group" {
7575
]
7676
wire_properties {
7777
bandwidth_unmetered = 1000
78+
bandwidth_allocation = "ALLOCATE_PER_WIRE"
7879
}
7980
wire_group_properties {
8081
type = "REDUNDANT"
@@ -106,10 +107,11 @@ resource "google_compute_wire_group" "example-test-wire-group" {
106107
]
107108
wire_properties {
108109
bandwidth_unmetered = 1000
110+
bandwidth_allocation = "ALLOCATE_PER_WIRE"
109111
}
110112
wire_group_properties {
111113
type = "REDUNDANT"
112-
}
114+
}
113115
admin_enabled = true
114116
}
115117
`, context)

0 commit comments

Comments
 (0)