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

     1  package vpc
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  	time "time"
     6  )
     7  
     8  // 调整弹性公网ip带宽
     9  // https://cloud.tencent.com/document/api/215/19214
    10  
    11  type ModifyAddressesBandwidthRequest struct {
    12  	// EIP唯一标识id,形如'eip-xxxx'
    13  	AddressIds []*string `name:"AddressIds"`
    14  	// 包月带宽结束时间
    15  	EndTime *time.Time `name:"EndTime,omitempty"`
    16  	// 调整带宽目标值
    17  	InternetMaxBandwidthOut int64 `name:"InternetMaxBandwidthOut"`
    18  	// 区域
    19  	Region string `name:"Region"`
    20  	// 包月带宽起始时间
    21  	StartTime *time.Time `name:"StartTime,omitempty"`
    22  }
    23  
    24  func (req *ModifyAddressesBandwidthRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyAddressesBandwidthResponse, error) {
    25  	resp := &ModifyAddressesBandwidthResponse{}
    26  	err := client.Request("vpc", "ModifyAddressesBandwidth", "2017-03-12").Do(req, resp)
    27  	return resp, err
    28  }
    29  
    30  type ModifyAddressesBandwidthResponse struct {
    31  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    32  }