func (a NetworksAPI) Read(mwsAcctID, networksID string) (Network, error) {
	var mwsNetwork Network
	networksAPIPath := fmt.Sprintf("/accounts/%s/networks/%s", mwsAcctID, networksID)
	err := a.client.Get(a.context, networksAPIPath, nil, &mwsNetwork)
	return mwsNetwork, err
}
Read returns the network object along with metadata and any additional errors when attaching to workspace
package mws
import (
	"context"
	"fmt"
	"log"
	"time"
	"github.com/databrickslabs/terraform-provider-databricks/common"
	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)
func NewNetworksAPI(ctx context.Context, m interface{}) NetworksAPI {
	return NetworksAPI{m.(*common.DatabricksClient), ctx}
}
type NetworksAPI struct {
	client  *common.DatabricksClient
	context context.Context
}
func (a NetworksAPI) Create(network *Network) error {
	networksAPIPath := fmt.Sprintf("/accounts/%s/networks", network.AccountID)
	return a.client.Post(a.context, networksAPIPath, network, &network)
}