github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/replace_direct_connect_gateway_ccn_routes.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/19188 9 10 type ReplaceDirectConnectGatewayCcnRoutesRequest struct { 11 // 专线网关ID,形如:dcg-prpqlmg1 12 DirectConnectGatewayId string `name:"DirectConnectGatewayId"` 13 // 区域 14 Region string `name:"Region"` 15 // 需要连通的IDC网段列表 16 Routes []*DirectConnectGatewayCcnRoute `name:"Routes"` 17 } 18 19 func (req *ReplaceDirectConnectGatewayCcnRoutesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ReplaceDirectConnectGatewayCcnRoutesResponse, error) { 20 resp := &ReplaceDirectConnectGatewayCcnRoutesResponse{} 21 err := client.Request("vpc", "ReplaceDirectConnectGatewayCcnRoutes", "2017-03-12").Do(req, resp) 22 return resp, err 23 } 24 25 type ReplaceDirectConnectGatewayCcnRoutesResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }