github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/describe_route_conflicts.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/19217
     9  
    10  type DescribeRouteConflictsRequest struct {
    11  	// 要检查的与之冲突的目的端列表
    12  	DestinationCidrBlocks []*string `name:"DestinationCidrBlocks"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  	// 路由表实例ID,例如:rtb-azd4dt1c。
    16  	RouteTableId string `name:"RouteTableId"`
    17  }
    18  
    19  func (req *DescribeRouteConflictsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeRouteConflictsResponse, error) {
    20  	resp := &DescribeRouteConflictsResponse{}
    21  	err := client.Request("vpc", "DescribeRouteConflicts", "2017-03-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type DescribeRouteConflictsResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// 路由策略冲突列表
    28  	RouteConflictSet []*RouteConflict `json:"RouteConflictSet"`
    29  }