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

     1  package sqlserver
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 查询迁移任务列表
     8  // https://cloud.tencent.com/document/api/238/19941
     9  
    10  type DescribeMigrationsRequest struct {
    11  	// 每页的记录数
    12  	Limit *int64 `name:"Limit,omitempty"`
    13  	// 迁移任务的名称,模糊匹配
    14  	MigrateName *string `name:"MigrateName,omitempty"`
    15  	// 查询第几页的记录
    16  	Offset *int64 `name:"Offset,omitempty"`
    17  	// 查询结果按照关键字排序,可选值为name、createTime、startTime,endTime,status
    18  	OrderBy *string `name:"OrderBy,omitempty"`
    19  	// 排序方式,可选值为desc、asc
    20  	OrderByType *string `name:"OrderByType,omitempty"`
    21  	// 区域
    22  	Region string `name:"Region"`
    23  	// 状态集合。只要符合集合中某一状态的迁移任务,就会查出来
    24  	StatusSet []*int64 `name:"StatusSet,omitempty"`
    25  }
    26  
    27  func (req *DescribeMigrationsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeMigrationsResponse, error) {
    28  	resp := &DescribeMigrationsResponse{}
    29  	err := client.Request("sqlserver", "DescribeMigrations", "2018-03-28").Do(req, resp)
    30  	return resp, err
    31  }
    32  
    33  type DescribeMigrationsResponse struct {
    34  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    35  	// 查询结果的列表
    36  	MigrateTaskSet []*MigrateTask `json:"MigrateTaskSet"`
    37  	// 查询结果的总数
    38  	TotalCount int64 `json:"TotalCount"`
    39  }