func NewSecretsAPI(ctx context.Context, m interface{}) SecretsAPI {
	return SecretsAPI{
		client:  m.(*common.DatabricksClient),
		context: ctx,
	}
}
NewSecretsAPI creates SecretsAPI instance from provider meta
package access
import (
	"context"
	"fmt"
	"net/http"
	"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"
)
type SecretsRequest struct {
	StringValue string `json:"string_value,omitempty" mask:"true"`
	Scope       string `json:"scope,omitempty"`
	Key         string `json:"key,omitempty"`
}
type SecretsList struct {
	Secrets []SecretMetadata `json:"secrets,omitempty"`
}
type SecretMetadata struct {
	Key                  string `json:"key,omitempty"`
	LastUpdatedTimestamp int64  `json:"last_updated_timestamp,omitempty"`
}
type ACLPermission string
const (
	ACLPermissionRead   ACLPermission = "READ"
	ACLPermissionWrite  ACLPermission = "WRITE"
	ACLPermissionManage ACLPermission = "MANAGE"
)
type SecretScopeACL struct {
	Items []ACLItem `json:"items,omitempty"`
}
type ACLItem struct {
	Principal  string        `json:"principal,omitempty"`
	Permission ACLPermission `json:"permission,omitempty"`
}
type SecretACLRequest struct {
	Scope      string        `json:"scope,omitempty" url:"scope,omitempty"`
	Principal  string        `json:"principal,omitempty" url:"principal,omitempty"`
	Permission ACLPermission `json:"permission,omitempty" url:"permission,omitempty"`
}