github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/sqlserver/renew_db_instance.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/19953
     9  
    10  type RenewDbInstanceRequest struct {
    11  	// 是否自动使用代金券,0-不使用;1-使用;默认不实用
    12  	AutoVoucher *int64 `name:"AutoVoucher,omitempty"`
    13  	// 实例ID,形如mssql-j8kv137v
    14  	InstanceId string `name:"InstanceId"`
    15  	// 续费多少个月,取值范围为1-48,默认为1
    16  	Period *int64 `name:"Period,omitempty"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  	// 代金券ID数组,目前只支持使用1张代金券
    20  	VoucherIds []*string `name:"VoucherIds,omitempty"`
    21  }
    22  
    23  func (req *RenewDbInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*RenewDbInstanceResponse, error) {
    24  	resp := &RenewDbInstanceResponse{}
    25  	err := client.Request("sqlserver", "RenewDBInstance", "2018-03-28").Do(req, resp)
    26  	return resp, err
    27  }
    28  
    29  type RenewDbInstanceResponse struct {
    30  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    31  	// 订单名称
    32  	DealName string `json:"DealName"`
    33  }