Skip to content

Commit b50cd8e

Browse files
prauciyabchen
authored andcommitted
google_network_connectivity_spoke: add include_export_ranges (GoogleCloudPlatform#11609)
1 parent 477453a commit b50cd8e

File tree

6 files changed

+40
-0
lines changed

6 files changed

+40
-0
lines changed

mmv1/products/networkconnectivity/Spoke.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ properties:
194194
min_version: ga
195195
immutable: true
196196
item_type: Api::Type::String
197+
- !ruby/object:Api::Type::Array
198+
name: includeExportRanges
199+
description: IP ranges allowed to be included from peering.
200+
min_version: ga
201+
immutable: true
202+
item_type: Api::Type::String
197203
- !ruby/object:Api::Type::String
198204
name: uniqueId
199205
description: Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different unique_id.

mmv1/products/networkconnectivity/go_Spoke.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ properties:
189189
immutable: true
190190
item_type:
191191
type: String
192+
- name: 'includeExportRanges'
193+
type: Array
194+
description: IP ranges allowed to be included from peering.
195+
immutable: true
196+
item_type:
197+
type: String
192198
- name: 'uniqueId'
193199
type: String
194200
description: Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different unique_id.

mmv1/templates/terraform/examples/go/network_connectivity_spoke_linked_vpc_network_basic.tf.tmpl

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ resource "google_network_connectivity_spoke" "{{$.PrimaryResourceId}}" {
2424
"198.51.100.0/24",
2525
"10.10.0.0/16"
2626
]
27+
include_export_ranges = [
28+
"198.51.100.0/23",
29+
"10.0.0.0/8"
30+
]
2731
uri = google_compute_network.network.self_link
2832
}
2933
}

mmv1/templates/terraform/examples/network_connectivity_spoke_linked_vpc_network_basic.tf.erb

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ resource "google_network_connectivity_spoke" "<%= ctx[:primary_resource_id] %>"
2424
"198.51.100.0/24",
2525
"10.10.0.0/16"
2626
]
27+
include_export_ranges = [
28+
"198.51.100.0/23",
29+
"10.0.0.0/8"
30+
]
2731
uri = google_compute_network.network.self_link
2832
}
2933
}

mmv1/third_party/terraform/services/networkconnectivity/resource_network_connectivity_spoke_test.go

+16
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ resource "google_network_connectivity_spoke" "primary" {
180180
"198.51.100.0/24",
181181
"10.10.0.0/16"
182182
]
183+
include_export_ranges = [
184+
"198.51.100.0/23",
185+
"10.0.0.0/8"
186+
]
183187
uri = google_compute_network.network.self_link
184188
}
185189
}
@@ -215,6 +219,10 @@ resource "google_network_connectivity_spoke" "primary" {
215219
"198.51.100.0/24",
216220
"10.10.0.0/16"
217221
]
222+
include_export_ranges = [
223+
"198.51.100.0/23",
224+
"10.0.0.0/8"
225+
]
218226
uri = google_compute_network.network.self_link
219227
}
220228
}
@@ -375,6 +383,10 @@ resource "google_network_connectivity_spoke" "primary" {
375383
"198.51.100.0/24",
376384
"10.10.0.0/16"
377385
]
386+
include_export_ranges = [
387+
"198.51.100.0/23",
388+
"10.0.0.0/8"
389+
]
378390
uri = google_compute_network.network.self_link
379391
}
380392
}
@@ -410,6 +422,10 @@ resource "google_network_connectivity_spoke" "primary" {
410422
"198.51.100.0/24",
411423
"10.10.0.0/16"
412424
]
425+
include_export_ranges = [
426+
"198.51.100.0/23",
427+
"10.0.0.0/8"
428+
]
413429
uri = google_compute_network.network.self_link
414430
}
415431
}

tpgtools/overrides/networkconnectivity/samples/spoke/linked_vpc_network.tf.tmpl

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ resource "google_network_connectivity_spoke" "primary" {
2525
"198.51.100.0/24",
2626
"10.10.0.0/16"
2727
]
28+
include_export_ranges = [
29+
"198.51.100.0/23",
30+
"10.0.0.0/8"
31+
]
2832
uri = google_compute_network.network.self_link
2933
}
3034
}

0 commit comments

Comments
 (0)