github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cvm/modify_instances_renew_flag.go (about) 1 package cvm 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 修改实例续费标识 8 // https://cloud.tencent.com/document/api/213/15752 9 10 type ModifyInstancesRenewFlagRequest struct { 11 // 一个或多个待操作的实例ID。可通过DescribeInstances API返回值中的InstanceId获取。每次请求允许操作的实例数量上限是100。 12 InstanceIds []*string `name:"InstanceIds"` 13 // 区域 14 Region string `name:"Region"` 15 // 自动续费标识。取值范围:NOTIFY_AND_AUTO_RENEW:通知过期且自动续费NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。 16 RenewFlag string `name:"RenewFlag"` 17 } 18 19 func (req *ModifyInstancesRenewFlagRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyInstancesRenewFlagResponse, error) { 20 resp := &ModifyInstancesRenewFlagResponse{} 21 err := client.Request("cvm", "ModifyInstancesRenewFlag", "2017-03-12").Do(req, resp) 22 return resp, err 23 } 24 25 type ModifyInstancesRenewFlagResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }