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

     1  package ms
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 将应用绑定到资源
     8  // https://cloud.tencent.com/document/api/283/18579
     9  
    10  type CreateBindInstanceRequest struct {
    11  	// app的icon的url
    12  	AppIconUrl string `name:"AppIconUrl"`
    13  	// app的名称
    14  	AppName string `name:"AppName"`
    15  	// app的包名
    16  	AppPkgName string `name:"AppPkgName"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  	// 资源id,全局唯一
    20  	ResourceId string `name:"ResourceId"`
    21  }
    22  
    23  func (req *CreateBindInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CreateBindInstanceResponse, error) {
    24  	resp := &CreateBindInstanceResponse{}
    25  	err := client.Request("ms", "CreateBindInstance", "2018-04-08").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type CreateBindInstanceResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  	// 任务状态: 1-已完成,2-处理中,3-处理出错,4-处理超时
    32  	Progress int64 `json:"Progress"`
    33  }