func CreateCreateSnapshotRequest() (request *CreateSnapshotRequest) {
	request = &CreateSnapshotRequest{
		RpcRequest: &requests.RpcRequest{},
	}
	request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSnapshot", "ecs", "openAPI")
	return
}
CreateCreateSnapshotRequest creates a request to invoke CreateSnapshot API
package ecs
import (
	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
)
func (client *Client) CreateSnapshot(request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error) {
	response = CreateCreateSnapshotResponse()
	err = client.DoAction(request, response)
	return
}
func (client *Client) CreateSnapshotWithChan(request *CreateSnapshotRequest) (<-chan *CreateSnapshotResponse, <-chan error) {
	responseChan := make(chan *CreateSnapshotResponse, 1)
	errChan := make(chan error, 1)
	err := client.AddAsyncTask(func() {
		defer close(responseChan)
		defer close(errChan)
		response, err := client.CreateSnapshot(request)
		if err != nil {
			errChan <- err
		} else {
			responseChan <- response
		}
	})
	if err != nil {
		errChan <- err
		close(responseChan)
		close(errChan)
	}
	return responseChan, errChan
}
func (client *Client) CreateSnapshotWithCallback(request *CreateSnapshotRequest, callback func(response *CreateSnapshotResponse, err error)) <-chan int {
	result := make(chan int, 1)
	err := client.AddAsyncTask(func() {
		var response *CreateSnapshotResponse
		var err error
		defer close(result)
		response, err = client.CreateSnapshot(request)
		callback(response, err)
		result <- 1
	})
	if err != nil {
		defer close(result)
		callback(nil, err)
		result <- 0
	}
	return result
}
type CreateSnapshotRequest struct {
	*requests.RpcRequest
	ResourceOwnerId      requests.Integer     `position:"Query" name:"ResourceOwnerId"`
	ResourceOwnerAccount string               `position:"Query" name:"ResourceOwnerAccount"`
	ClientToken          string               `position:"Query" name:"ClientToken"`
	OwnerAccount         string               `position:"Query" name:"OwnerAccount"`
	Description          string               `position:"Query" name:"Description"`
	SnapshotName         string               `position:"Query" name:"SnapshotName"`
	OwnerId              requests.Integer     `position:"Query" name:"OwnerId"`
	SourceSnapshotId     string               `position:"Query" name:"SourceSnapshotId"`
	RemoveSourceSnapshot requests.Boolean     `position:"Query" name:"RemoveSourceSnapshot"`
	DiskId               string               `position:"Query" name:"DiskId"`
	RetentionDays        requests.Integer     `position:"Query" name:"RetentionDays"`
	Tag                  *[]CreateSnapshotTag `position:"Query" name:"Tag"  type:"Repeated"`
	Category             string               `position:"Query" name:"Category"`
}
type CreateSnapshotTag struct {
	Value string `name:"Value"`
	Key   string `name:"Key"`
}
type CreateSnapshotResponse struct {
	*responses.BaseResponse
	RequestId  string `json:"RequestId" xml:"RequestId"`
	SnapshotId string `json:"SnapshotId" xml:"SnapshotId"`
}