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

     1  package redis
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 升级实例
     8  // https://cloud.tencent.com/document/api/239/20013
     9  
    10  type UpgradeInstanceRequest struct {
    11  	// 升级的实例Id
    12  	InstanceId string `name:"InstanceId"`
    13  	// 规格 单位 MB
    14  	MemSize int64 `name:"MemSize"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  }
    18  
    19  func (req *UpgradeInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*UpgradeInstanceResponse, error) {
    20  	resp := &UpgradeInstanceResponse{}
    21  	err := client.Request("redis", "UpgradeInstance", "2018-04-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type UpgradeInstanceResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// 订单ID
    28  	DealId string `json:"DealId"`
    29  }