Skip to content

Commit f7c8d38

Browse files
authored
Added network_id to network block in databricks_mws_workspaces for GCP (#1360)
1 parent 10d606c commit f7c8d38

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

mws/resource_workspace.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ type GCPCommonNetworkConfig struct {
6666
}
6767

6868
type GCPNetwork struct {
69+
NetworkID string `json:"network_id,omitempty"`
6970
GCPManagedNetworkConfig *GCPManagedNetworkConfig `json:"gcp_managed_network_config"`
7071
GCPCommonNetworkConfig *GCPCommonNetworkConfig `json:"gcp_common_network_config"`
7172
}

mws/resource_workspace_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ func TestResourceWorkspaceCreateGcp(t *testing.T) {
129129
},
130130
"location": "bcd",
131131
"network": map[string]interface{}{
132+
"network_id": "net_id_a",
132133
"gcp_common_network_config": map[string]interface{}{
133134
"gke_cluster_master_ip_range": "e",
134135
"gke_connectivity_type": "d",
@@ -173,6 +174,7 @@ func TestResourceWorkspaceCreateGcp(t *testing.T) {
173174
}
174175
}
175176
network {
177+
network_id = "net_id_a"
176178
gcp_managed_network_config {
177179
subnet_cidr = "a"
178180
gke_cluster_pod_ip_range = "b"

0 commit comments

Comments
 (0)