Skip to content

Add policyMode field #13013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 8 additions & 0 deletions mmv1/products/networkconnectivity/Hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ properties:
- 'MESH'
- 'STAR'
default_from_api: true
- name: 'policyMode'
type: Enum
description: Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policyMode defaults to PRESET.
immutable: true
enum_values:
- 'CUSTOM'
- 'PRESET'
default_from_api: true
- name: 'exportPsc'
type: Boolean
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.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
resource "google_network_connectivity_hub" "{{$.PrimaryResourceId}}" {
name = "{{index $.Vars "resource_name"}}"
description = "A sample hub with policy_mode set to CUSTOM"
policy_mode = "CUSTOM"
labels = {
label-one = "value-one"
}
}

resource "google_network_connectivity_hub" "{{$.PrimaryResourceId}}" {
name = "{{index $.Vars "resource_name"}}"
description = "A sample hub with PRESET policy_mode (default topology should be MESH)"
policy_mode = "PRESET"
labels = {
label-one = "value-one"
}
}

resource "google_network_connectivity_hub" "{{$.PrimaryResourceId}}" {
name = "{{index $.Vars "resource_name"}}"
description = "A sample hub with PRESET policy_mode and STAR topology"
policy_mode = "PRESET"
preset_topology = "STAR"
labels = {
label-one = "value-one"
}
}
Loading