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

     1  package cbs
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 续费云硬盘
     8  // https://cloud.tencent.com/document/api/362/16319
     9  
    10  type RenewDiskRequest struct {
    11  	// 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月云盘的续费时长。在云盘与挂载的实例一起续费的场景下,可以指定参数CurInstanceDeadline,此时云盘会按对齐到实例续费后的到期时间来续费。
    12  	DiskChargePrepaid DiskChargePrepaid `name:"DiskChargePrepaid"`
    13  	// 云硬盘ID, 通过DescribeDisks接口查询。
    14  	DiskId string `name:"DiskId"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  }
    18  
    19  func (req *RenewDiskRequest) Invoke(client github_com_morlay_goqcloud.Client) (*RenewDiskResponse, error) {
    20  	resp := &RenewDiskResponse{}
    21  	err := client.Request("cbs", "RenewDisk", "2017-03-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type RenewDiskResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  }