func GetDeploySet(cli bce.Client, deploySetId string) (*DeploySetResult, error) {
	req := &bce.BceRequest{}
	req.SetUri(getDeploySetUrl(deploySetId))
	req.SetMethod(http.GET)
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return nil, err
	}
	if resp.IsFail() {
		return nil, resp.ServiceError()
	}
	jsonBody := &DeploySetResult{}
	if err := resp.ParseJsonBody(jsonBody); err != nil {
		return nil, err
	}
	return jsonBody, nil
}
GetDeploySet - get details of the deploy set

PARAMS:
- cli: the client agent which can perform sending request
- deploySetId: the id of the deploy set
RETURNS:
- *GetDeploySetResult: the detail of the deploy set
- error: nil if success otherwise the specific error
package api
import (
	"github.com/baidubce/bce-sdk-go/bce"
	"github.com/baidubce/bce-sdk-go/http"
)
func CreateDeploySet(cli bce.Client, clientToken string, reqBody *bce.Body) (*CreateDeploySetResult, error) {
	req := &bce.BceRequest{}
	req.SetUri(getDeploySetCreateUri())
	req.SetMethod(http.POST)
	req.SetBody(reqBody)
	if clientToken != "" {
		req.SetParam("clientToken", clientToken)
	}
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return nil, err
	}
	if resp.IsFail() {
		return nil, resp.ServiceError()
	}
	jsonBody := &CreateDeploySetResp{}
	if err := resp.ParseJsonBody(jsonBody); err != nil {
		return nil, err
	}
	if jsonBody != nil && len(jsonBody.DeploySetIds) > 0 {
		jsonResp := &CreateDeploySetResult{
			DeploySetId: jsonBody.DeploySetIds[0],
		}
		return jsonResp, nil
	}
	return nil, nil
}
func ListDeploySets(cli bce.Client) (*ListDeploySetsResult, error) {
	req := &bce.BceRequest{}
	req.SetUri(getDeploySetListUri())
	req.SetMethod(http.GET)
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return nil, err
	}
	if resp.IsFail() {
		return nil, resp.ServiceError()
	}
	jsonBody := &ListDeploySetsResult{}
	if err := resp.ParseJsonBody(jsonBody); err != nil {
		return nil, err
	}
	return jsonBody, nil
}
func ModifyDeploySet(cli bce.Client, deploySetId string, clientToken string, reqBody *bce.Body) error {
	req := &bce.BceRequest{}
	req.SetUri(getDeploySetUriWithId(deploySetId))
	req.SetMethod(http.PUT)
	req.SetBody(reqBody)
	req.SetParam("modifyAttribute", "")
	if clientToken != "" {
		req.SetParam("clientToken", clientToken)
	}
	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 DeleteDeploySet(cli bce.Client, deploySetId string) error {
	req := &bce.BceRequest{}
	req.SetUri(getDeploySetUriWithId(deploySetId))
	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
}