github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/transform_address.go (about) 1 package vpc 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 普通IP转弹性IP 8 // https://cloud.tencent.com/document/api/215/16706 9 10 type TransformAddressRequest struct { 11 // 待操作有普通公网 IP 的实例 ID。实例 ID 形如:ins-11112222。可通过登录控制台查询,也可通过 DescribeInstances 接口返回值中的InstanceId获取。 12 InstanceId string `name:"InstanceId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *TransformAddressRequest) Invoke(client github_com_morlay_goqcloud.Client) (*TransformAddressResponse, error) { 18 resp := &TransformAddressResponse{} 19 err := client.Request("vpc", "TransformAddress", "2017-03-12").Do(req, resp) 20 return resp, err 21 } 22 23 type TransformAddressResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 }