github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/tia/list_models.go (about) 1 package tia 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 列举Model 8 // https://cloud.tencent.com/document/api/851/18312 9 10 type ListModelsRequest struct { 11 // 部署模型的集群 12 Cluster *string `name:"Cluster,omitempty"` 13 // 分页参数,返回数量 14 Limit *int64 `name:"Limit,omitempty"` 15 // 分页参数,起始位置 16 Offset *int64 `name:"Offset,omitempty"` 17 // 区域 18 Region string `name:"Region"` 19 // 模型类型 20 ServType *string `name:"ServType,omitempty"` 21 } 22 23 func (req *ListModelsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ListModelsResponse, error) { 24 resp := &ListModelsResponse{} 25 err := client.Request("tia", "ListModels", "2018-02-26").Do(req, resp) 26 return resp, err 27 } 28 29 type ListModelsResponse struct { 30 github_com_morlay_goqcloud.TencentCloudBaseResponse 31 // Model数组,用以显示所有模型的信息 32 Models []*Model `json:"Models"` 33 }