func DeleteAutoSnapshotPolicy(cli bce.Client, aspId string) error {
	req := &bce.BceRequest{}
	req.SetUri(getASPUriWithId(aspId))
	req.SetMethod(http.DELETE)
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return err
	}
	if resp.IsFail() {
		return resp.ServiceError()
	}
	defer func() { resp.Body().Close() }()
	return nil
}
DeleteAutoSnapshotPolicy - delete an automatic snapshot policy

PARAMS:
- cli: the client agent which can perform sending request
- aspId: the id of the automatic snapshot policy
RETURNS:
- error: nil if success otherwise the specific error
package api
import (
	"encoding/json"
	"strconv"
	"github.com/baidubce/bce-sdk-go/bce"
	"github.com/baidubce/bce-sdk-go/http"
)
func CreateAutoSnapshotPolicy(cli bce.Client, args *CreateASPArgs) (*CreateASPResult, error) {
	req := &bce.BceRequest{}
	req.SetUri(getASPUri())
	req.SetMethod(http.POST)
	if args != nil && len(args.ClientToken) != 0 {
		req.SetParam("clientToken", args.ClientToken)
	}
	jsonBytes, err := json.Marshal(args)
	if err != nil {
		return nil, err
	}
	body, err := bce.NewBodyFromBytes(jsonBytes)
	if err != nil {
		return nil, err
	}
	req.SetBody(body)
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return nil, err
	}
	if resp.IsFail() {
		return nil, resp.ServiceError()
	}
	jsonBody := &CreateASPResult{}
	if err := resp.ParseJsonBody(jsonBody); err != nil {
		return nil, err
	}
	return jsonBody, nil
}
func AttachAutoSnapshotPolicy(cli bce.Client, aspId string, args *AttachASPArgs) error {
	req := &bce.BceRequest{}
	req.SetUri(getASPUriWithId(aspId))
	req.SetMethod(http.PUT)
	req.SetParam("attach", "")
	jsonBytes, err := json.Marshal(args)
	if err != nil {
		return err
	}
	body, err := bce.NewBodyFromBytes(jsonBytes)
	if err != nil {
		return err
	}
	req.SetBody(body)
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return err
	}
	if resp.IsFail() {
		return resp.ServiceError()
	}
	defer func() { resp.Body().Close() }()
	return nil
}
func DetachAutoSnapshotPolicy(cli bce.Client, aspId string, args *DetachASPArgs) error {
	req := &bce.BceRequest{}
	req.SetUri(getASPUriWithId(aspId))
	req.SetMethod(http.PUT)
	req.SetParam("detach", "")
	jsonBytes, err := json.Marshal(args)
	if err != nil {
		return err
	}
	body, err := bce.NewBodyFromBytes(jsonBytes)
	if err != nil {
		return err
	}
	req.SetBody(body)
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return err
	}
	if resp.IsFail() {
		return resp.ServiceError()
	}
	defer func() { resp.Body().Close() }()
	return nil
}