github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/sqlserver/rollback_instance.go (about)

     1  package sqlserver
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  	time "time"
     6  )
     7  
     8  // 回档实例
     9  // https://cloud.tencent.com/document/api/238/19949
    10  
    11  type RollbackInstanceRequest struct {
    12  	// 需要回档的数据库
    13  	DBs []*string `name:"DBs"`
    14  	// 实例ID
    15  	InstanceId string `name:"InstanceId"`
    16  	// 区域
    17  	Region string `name:"Region"`
    18  	// 回档目标时间点
    19  	Time time.Time `name:"Time"`
    20  	// 回档类型,0-回档的数据库覆盖原库;1-回档的数据库以重命名的形式生成,不覆盖原库
    21  	Type int64 `name:"Type"`
    22  }
    23  
    24  func (req *RollbackInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*RollbackInstanceResponse, error) {
    25  	resp := &RollbackInstanceResponse{}
    26  	err := client.Request("sqlserver", "RollbackInstance", "2018-03-28").Do(req, resp)
    27  	return resp, err
    28  }
    29  
    30  type RollbackInstanceResponse struct {
    31  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    32  	// 异步任务ID
    33  	FlowId int64 `json:"FlowId"`
    34  }