func (a InstancePoolsAPI) List() (ipl InstancePoolList, err error) {
	err = a.client.Get(a.context, "/instance-pools/list", nil, &ipl)
	return
}
List retrieves the list of existing instance pools
package compute
import (
	"context"
	"github.com/databrickslabs/terraform-provider-databricks/common"
	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)
func NewInstancePoolsAPI(ctx context.Context, m interface{}) InstancePoolsAPI {
	return InstancePoolsAPI{m.(*common.DatabricksClient), ctx}
}
type InstancePoolsAPI struct {
	client  *common.DatabricksClient
	context context.Context
}
func (a InstancePoolsAPI) Create(instancePool InstancePool) (InstancePoolAndStats, error) {
	var instancePoolInfo InstancePoolAndStats
	err := a.client.Post(a.context, "/instance-pools/create", instancePool, &instancePoolInfo)
	return instancePoolInfo, err
}
func (a InstancePoolsAPI) Update(ip InstancePool) error {
	return a.client.Post(a.context, "/instance-pools/edit", ip, nil)
}
func (a InstancePoolsAPI) Read(instancePoolID string) (ip InstancePool, err error) {
	err = a.client.Get(a.context, "/instance-pools/get", map[string]string{
		"instance_pool_id": instancePoolID,
	}, &ip)
	return
}