Skip to content

Commit 4cdbeeb

Browse files
JaylonmcShan03NA2047
authored andcommitted
Add policyMode field (GoogleCloudPlatform#13013)
1 parent 6a61101 commit 4cdbeeb

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

mmv1/products/networkconnectivity/Hub.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ examples:
5454
primary_resource_id: 'primary'
5555
vars:
5656
resource_name: 'star'
57+
- name: 'network_connectivity_hub_policy_mode'
58+
primary_resource_id: 'primary'
59+
vars:
60+
resource_name: 'policy'
61+
5762
parameters:
5863
properties:
5964
- name: 'name'
@@ -108,6 +113,14 @@ properties:
108113
- 'MESH'
109114
- 'STAR'
110115
default_from_api: true
116+
- name: 'policyMode'
117+
type: Enum
118+
description: Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policyMode defaults to PRESET.
119+
immutable: true
120+
enum_values:
121+
- 'CUSTOM'
122+
- 'PRESET'
123+
default_from_api: true
111124
- name: 'exportPsc'
112125
type: Boolean
113126
description: Whether Private Service Connect transitivity is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
resource "google_network_connectivity_hub" "{{$.PrimaryResourceId}}" {
3+
name = "{{index $.Vars "resource_name"}}"
4+
description = "A sample hub with PRESET policy_mode and STAR topology"
5+
policy_mode = "PRESET"
6+
preset_topology = "STAR"
7+
labels = {
8+
label-one = "value-one"
9+
}
10+
}

0 commit comments

Comments
 (0)