github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/add_bandwidth_package_resources.go (about) 1 package vpc 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 添加带宽包资源 8 // https://cloud.tencent.com/document/api/215/19213 9 10 type AddBandwidthPackageResourcesRequest struct { 11 // 带宽包唯一标识ID,形如'bwp-xxxx' 12 BandwidthPackageId *string `name:"BandwidthPackageId,omitempty"` 13 // 带宽包类型,包括'BGP', 'SINGLEISP', 'ANYCAST' 14 NetworkType *string `name:"NetworkType,omitempty"` 15 // 区域 16 Region string `name:"Region"` 17 // 资源Id,形如'eip-xxxx', 'lb-xxxx' 18 ResourceIds []*string `name:"ResourceIds"` 19 // 资源类型,包括'Address', 'LoadBalance' 20 ResourceType *string `name:"ResourceType,omitempty"` 21 } 22 23 func (req *AddBandwidthPackageResourcesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*AddBandwidthPackageResourcesResponse, error) { 24 resp := &AddBandwidthPackageResourcesResponse{} 25 err := client.Request("vpc", "AddBandwidthPackageResources", "2017-03-12").Do(req, resp) 26 return resp, err 27 } 28 29 type AddBandwidthPackageResourcesResponse struct { 30 github_com_morlay_goqcloud.TencentCloudBaseResponse 31 }