github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/vpc/modify_route_table_attribute.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/15766
     9  
    10  type ModifyRouteTableAttributeRequest struct {
    11  	// 区域
    12  	Region string `name:"Region"`
    13  	// 路由表实例ID,例如:rtb-azd4dt1c。
    14  	RouteTableId string `name:"RouteTableId"`
    15  	// 路由表名称。
    16  	RouteTableName string `name:"RouteTableName"`
    17  }
    18  
    19  func (req *ModifyRouteTableAttributeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyRouteTableAttributeResponse, error) {
    20  	resp := &ModifyRouteTableAttributeResponse{}
    21  	err := client.Request("vpc", "ModifyRouteTableAttribute", "2017-03-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type ModifyRouteTableAttributeResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  }