Skip to content

Commit

Permalink
Added network_id to network block in databricks_mws_workspaces
Browse files Browse the repository at this point in the history
…for GCP (#1360)
  • Loading branch information
marekbrysa authored Jun 7, 2022
1 parent 10d606c commit f7c8d38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mws/resource_workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ type GCPCommonNetworkConfig struct {
}

type GCPNetwork struct {
NetworkID string `json:"network_id,omitempty"`
GCPManagedNetworkConfig *GCPManagedNetworkConfig `json:"gcp_managed_network_config"`
GCPCommonNetworkConfig *GCPCommonNetworkConfig `json:"gcp_common_network_config"`
}
Expand Down
2 changes: 2 additions & 0 deletions mws/resource_workspace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func TestResourceWorkspaceCreateGcp(t *testing.T) {
},
"location": "bcd",
"network": map[string]interface{}{
"network_id": "net_id_a",
"gcp_common_network_config": map[string]interface{}{
"gke_cluster_master_ip_range": "e",
"gke_connectivity_type": "d",
Expand Down Expand Up @@ -173,6 +174,7 @@ func TestResourceWorkspaceCreateGcp(t *testing.T) {
}
}
network {
network_id = "net_id_a"
gcp_managed_network_config {
subnet_cidr = "a"
gke_cluster_pod_ip_range = "b"
Expand Down

0 comments on commit f7c8d38

Please sign in to comment.